Core Function
View Source on Trac ↗ get_the_taxonomies()
get_the_taxonomies( mixed $post = 0, mixed $args = array() ) Retrieves all taxonomies associated with a post.
Parameters 2 required
| Name / Type | Description |
|---|---|
| (int | | WP_Post) $post Optional. Post ID or WP_Post object. Default is global $post. Required |
| array | $args { Optional. Arguments about how to format the list of taxonomies. Default empty array. Required |
Return Value
(string[])
List of taxonomies.
Function Information
Since Version
2.5.0
Source File
wp-includes/taxonomy.php
Advertisement