gistfile1.php
// Because get_object_terms filter was not included until WP 4.2+ we have to use wp_get_object_terms for backwards compatibility.
// Unfortunately this means taxonomies are passed like this: ( ‘resume_category’, ‘resume_skill’ ), so we have to remove the quotes,
// and then use explode to convert it into an array of taxonomies.
$tax_array = explode( “, “, str_replace( “‘”, “”, $taxonomies ) );
gistfile1.php
// Because get_object_terms filter was not included until WP 4.2+ we have to use wp_get_object_terms for backwards compatibility.
// Unfortunately this means taxonomies are passed like this: ( 'resume_category', 'resume_skill' ), so we have to remove the quotes,
// and then use explode to convert it into an array of taxonomies.
$tax_array = explode( ", ", str_replace( "'", "", $taxonomies ) );
No comments yet.