wc_get_attribute_taxonomy_names

Get an array of product attribute taxonomies.

Description

(array) wc_get_attribute_taxonomy_names(); 

Returns (array)


Usage

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

Defined (1)

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

/includes/wc-attribute-functions.php  
  1. function wc_get_attribute_taxonomy_names() { 
  2. $taxonomy_names = array(); 
  3. $attribute_taxonomies = wc_get_attribute_taxonomies(); 
  4. if ( ! empty( $attribute_taxonomies ) ) { 
  5. foreach ( $attribute_taxonomies as $tax ) { 
  6. $taxonomy_names[] = wc_attribute_taxonomy_name( $tax->attribute_name ); 
  7. return $taxonomy_names;