public function custom_column($column) { if (isset($this->columns[$column])) { add_filter('scpt_plugin_formatted_meta', array($this, 'format_meta_for_list'), 10, 2); the_scpt_formatted_meta($column); } /* If listing a taxonomy... $terms = get_the_term_list( $post->ID , 'location' , '' , ', ' , '' ); if ( is_string( $terms ) ) echo $terms; */ }
public function custom_column($column, $post_id) { if (isset($this->columns[$column])) { if (!in_array($column, $this->field_names)) { if (taxonomy_exists($column)) { $terms = get_the_term_list($post_id, $column, '', ', ', ''); if (is_string($terms)) { echo $terms; } return; } } add_filter('scpt_plugin_formatted_meta', array($this, 'format_meta_for_list'), 10, 2); the_scpt_formatted_meta($column); } }