get_post_taxonomies() WP 2.5.0
Retrieve all taxonomy names for the given post.
No Hooks.
Return
String[]. An array of all taxonomy names for the given post.
Usage
get_post_taxonomies( $post );
- $post(int/WP_Post)
- Post ID or WP_Post object.
Default: global $post
Changelog
Since 2.5.0 | Introduced. |
Code of get_post_taxonomies() get post taxonomies WP 5.6
function get_post_taxonomies( $post = 0 ) {
$post = get_post( $post );
return get_object_taxonomies( $post );
}