wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



get_post_taxonomies › WordPress Function

Depuis2.5.0
Dépréciéen/a
get_post_taxonomies ( $post = 0 )
Paramètres:
  • (int|WP_Post) $post Optional. Post ID or WP_Post object. Default is global $post.
    Requis: Non
    Défaut:
Retourne:
  • (string[]) An array of all taxonomy names for the given post.
Défini(e) dans:
Codex:

Retrieves all taxonomy names for the given post.



Source

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

	return get_object_taxonomies( $post );
}