is_product_category() │ WC 1.0

Is_product_category - Returns true when viewing a product category.

Хуков нет.

Возвращает

bool.

Использование

is_product_category( $term );
$term(строка)
The term slug your checking for. Leave blank to return true on any.
По умолчанию: ''

Код is_product_category() WC 11.2.2

function is_product_category( $term = '' ) {
	return is_tax( 'product_cat', $term );
}