function get_the_tags( $id = 0 ) {}

Retrieve the tags for a post.


  • int $id: Post ID.

Defined filters

  • get_the_tags
    apply_filters( 'get_the_tags', get_the_terms( $id, 'post_tag' )

Source code

function get_the_tags( $id = 0 ) {

	return apply_filters( 'get_the_tags', get_the_terms( $id, 'post_tag' ) );



No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: