get_post_taxonomies()
Retrieves all taxonomy names for the given post.
Хуков нет.
Возвращает
Строку[]. An array of all taxonomy names for the given post.
Использование
get_post_taxonomies( $post );
- $post(int|WP_Post)
- Post ID or WP_Post object.
По умолчанию: global $post
Список изменений
| С версии 2.5.0 | Введена. |
Код get_post_taxonomies() get post taxonomies WP 6.9
function get_post_taxonomies( $post = 0 ) {
$post = get_post( $post );
return get_object_taxonomies( $post );
}