Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825
Wpjm_Helpers::get_resume_categories( $resume_id )
Returns an array collection of categories in Job.
Return Return
(array) $terms The collection of terms.
Source Source
File: src/integrations/wp-job-manager/helpers/wpjm-helpers.php
public function get_resume_categories( $resume_id = 0 ) { if ( empty( $resume_id ) ) { return array(); } $categories = array(); $terms = wp_get_object_terms( $resume_id, 'resume_category' ); if ( ! is_wp_error( $terms ) ) { if ( ! empty( $terms ) ) { foreach ( $terms as $term ) { $categories[] = $term->name; } // Sort alphabetically. sort( $categories ); } } return $categories; }
Expand full source code Collapse full source code View on Github