get_post_taxonomies()WP 2.5.0

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() WP 6.5.2

function get_post_taxonomies( $post = 0 ) {
	$post = get_post( $post );

	return get_object_taxonomies( $post );
}