Definition:
function has_tag( $tag = '', $post = null ) {}
Parameters
- string|int|array $tag: Optional. The tag name/term_id/slug or array of them to check for.
- int|object $post: Optional. Post to check instead of the current post. (since 2.7.0)
Return values
returns:True if the current post has any of the given tags (or any tag, if no tag specified).
Source code
function has_tag( $tag = '', $post = null ) {
return has_term( $tag, 'post_tag', $post );
}
1939

February 12, 2011 

