has_tag Wordpress function


Description:

Check if the current post has any of given tags.


Syntax:


Arguments:

(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 Type:

(bool) True if the current post has any of the given tags (or any tag, if no tag specified).


Define At:

wp-includes/category-template.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/has_tag


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×