Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function get_the_resume_ids( $post = null ) {
- $post = get_post( $post );
- if ( $post->post_type !== 'resume' )
- return '';
- if ( ! get_option( 'resume_manager_enable_categories' ) )
- return '';
- $categories = wp_get_object_terms( $post->ID, 'resume_category', array( 'fields' => 'ids' ) );
- if ( is_wp_error( $categories ) ) {
- return '';
- }
- return implode( ', ', $categories );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement