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: - Introduced in WordPress: 2.3.0
- Deprecated in WordPress: —
Description
Retrieves the tags for a post.