get_post_taxonomies( int|WP_Post $post )

Retrieve all taxonomies of a post with just the names.


Description


Parameters

$post

(int|WP_Post) (Optional) Post ID or WP_Post object. Default is global $post.


Top ↑

Return

(array) An array of all taxonomy names for the given post.


Top ↑

Source

File: wp-includes/taxonomy.php

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

	return get_object_taxonomies( $post );
}

Top ↑

Changelog

Version Description
2.5.0 Introduced.