get_the_tags


get_the_tags ( $post_id = 0 )

Parameters:
  • (int) post_id Post ID.
Returns:
  • (WP_Term[]|bool|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_tags, the_tags, get_the_terms, get_theme_data

Top Google Results

User discussions

wpseek mobile