get_the_tags


get_the_tags ( $post = 0 )

Parameters:
  • (int|WP_Post) post Post ID or object.
Returns:
  • (WP_Term[]|false|WP_Error) Array of WP_Term objects on success, false if there are no terms or the post does not exist, WP_Error on failure.
Defined at:

Description

Retrieves the tags for a post.

Related Functions

get_the_tag_list, get_the_terms, the_tags, get_tags, get_theme_data

Top Google Results

User discussions

wpseek mobile