function arras_get_taxonomy_list($object) { $taxonomies = get_object_taxonomies($object, 'objects'); $opt = array(); foreach ($taxonomies as $id => $obj) { if (!in_array($id, arras_taxonomy_blacklist())) { $opt[$id] = $obj->labels->name; } } return $opt; }
function arras_get_taxonomy_list($object) { $taxonomies = get_object_taxonomies($object, 'objects'); $opt = array(); foreach ($taxonomies as $id => $obj) { if (!in_array($id, arras_taxonomy_blacklist())) { if ($id == 'category' || $id == 'post_tag' || isset($obj->query_var)) { $opt[$id] = $obj->labels->name; } } } return $opt; }