wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



get_post_taxonomies › WordPress Function

Da2.5.0
Deprecaton/a
get_post_taxonomies ( $post = 0 )
Parametri:
  • (int|WP_Post) $post Optional. Post ID or WP_Post object. Default is global $post.
    Richiesto: No
    Default:
Ritorna:
  • (string[]) An array of all taxonomy names for the given post.
Definito a:
Codex:

Retrieves all taxonomy names for the given post.



Sorgenti

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

	return get_object_taxonomies( $post );
}