WordPress at Your Fingertips

is_product_tag() WC 1.0

Is_product_tag - Returns true when viewing a product tag.

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.

Code of is_product_tag() WC 5.5.2

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

From tag: WC Conditional Tags

No comments
    Log In