get_post_taxonomies() │ WP 2.5.0

Retrieves all taxonomy names for the given post.

Хуков нет.

Возвращает

string[]. 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 7.1.2

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

	return get_object_taxonomies( $post );
}