wpseek.com
A WordPress-centric search engine for devs and theme authors



get_post_taxonomies › WordPress Function

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:
  • (string[]) An array of all taxonomy names for the given post.
Defined at:
Codex:

Retrieves all taxonomy names for the given post.



Source

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

	return get_object_taxonomies( $post );
}