A WordPress-centric search engine for devs and theme authors



get_post_taxonomies ›

Since2.5.0
Deprecatedn/a
get_post_taxonomies ( $post = 0 )
Parameters:
  • (int|WP_Post) $post Optional. Post ID or WP_Post object. Default is global $post.
    Required: No
    Default:
Returns:
  • (array) An array of all taxonomy names for the given post.
Defined at:
Codex:

Retrieve all taxonomies of a post with just the names.



Source

function get_post_taxonomies( $post = 0 ) {
	$post = get_post( $post );

	return get_object_taxonomies($post);
}