Core Function
View Source on Trac ↗ get_post_taxonomies()
get_post_taxonomies( mixed $post = 0 ) Retrieves all taxonomy names for the given post.
Parameters 1 required
| Name / Type | Description |
|---|---|
| (int | | WP_Post) $post Optional. Post ID or WP_Post object. Default is global $post. Required |
Return Value
(string[])
An array of all taxonomy names for the given post.
Function Information
Since Version
2.5.0
Source File
wp-includes/taxonomy.php
Advertisement