get_post_taxonomies() WordPress Function
The get_post_taxonomies() function is used to retrieve the taxonomies associated with a post. This function returns an array of taxonomy objects.
get_post_taxonomies( int|WP_Post $post ) #
Retrieves all taxonomy names for the given post.
Parameters
Return
(string[]) An array of all taxonomy names for the given post.
Source
File: wp-includes/taxonomy.php
function get_post_taxonomies( $post = 0 ) { $post = get_post( $post ); return get_object_taxonomies( $post ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |