get_post_taxonomies

SummerySummery

Retrieve all taxonomy names for the given post.

Syntax

get_post_taxonomies( int|WP_Post $post )

ParametersParameters

$post

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

ReturnReturn

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

SourceSource

File: wp-includes/taxonomy.php


			

ChangelogChangelog

Changelog
Version Description
2.5.0 Introduced.
Scroll to Top