is_product_taxonomy

Is_product_taxonomy - Returns true when viewing a product taxonomy archive.

Description

is_product_taxonomy(); 

Usage

  1. if ( !function_exists( 'is_product_taxonomy' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-conditional-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = is_product_taxonomy(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-conditional-functions.php  
  1. function is_product_taxonomy() { 
  2. return is_tax( get_object_taxonomies( 'product' ) );