is_product_category( string $term = '' )
Is_product_category – Returns true when viewing a product category.
Description Description
Parameters Parameters
- $term
-
(Optional) (default: '') The term slug your checking for. Leave blank to return true on any.
Default value: ''
Return Return
(bool)
Source Source
File: includes/wc-conditional-functions.php
function is_product_category( $term = '' ) { return is_tax( 'product_cat', $term ); }