WPDev.one

is_tag()

is_tag( mixed $tag = '' )

Determines whether the query is for an existing tag archive page.

Parameters 1 required

Name / Type Description
mixed

(int | string | int[] | string[]) $tag Optional. Tag ID, name, slug, or array of such to check against. Default empty.

Required

Return Value

(bool)
Whether the query is for an existing tag archive page.

Function Information

Since Version
2.3.0
Source File
wp-includes/query.php
Advertisement