get_the_tags


get_the_tags ( $post_id = 0 )

Parameters:
  • (int|WP_Post) post_id 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, the_tags, get_the_terms, get_tags, get_theme_data

Top Google Results

User discussions

wpseek mobile