WordPress at Your Fingertips

is_product_tag() WC 1.0

Is_product_tag - Returns true when viewing a product tag.

{{desc}}

Uses: is_tax()

No Hooks.

Return

true|false.

Usage

is_product_tag( $term );
$term(string)
(default: '') The term slug your checking for. Leave blank to return true on any.
Default: ''

Code of is_product_tag() WC 6.1.1

function is_product_tag( $term = '' ) {
	return is_tax( 'product_tag', $term );
}

WC Conditional Tags

No comments
    Log In