Automator_Taxonomies::add_custom_column_data( $column, $post_id )
Contents
Parameters Parameters
- $column
-
(Required)
- $post_id
-
(Required)
Source Source
File: src/core/automator-post-types/uo-taxonomies/class-automator-taxonomies.php
public function add_custom_column_data( $column, $post_id ) { switch ( $column ) { case 'recipe_category': $terms = get_the_term_list( $post_id, 'recipe_category', '', ',', '' ); if ( is_string( $terms ) ) { echo $terms; } break; case 'recipe_tag' : $terms = get_the_term_list( $post_id, 'recipe_tag', '', ',', '' ); if ( is_string( $terms ) ) { echo $terms; } break; } }
Expand full source code Collapse full source code View on Github