Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

get_object_taxonomies()

3 tags 1 category

get_object_taxonomies() — Returns the names or objects of the taxonomies which are registered for the requested object or object type, such as a post object or post type name. Example: $taxonomies = get_object_taxonomies( ‘post’ ); This results in: Array( ‘category’, ‘post_tag’ )

Inputs: $object_type (string|string[]|WP_Post): Name of the type of taxonomy object, or an object (row from posts). $output (string): Optional. The type of output to return in the array. Accepts either ‘names’ or ‘objects’. Default ‘names’.

Returns string[]|WP_Taxonomy[]: The names or objects of all taxonomies of $object_type.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…