wc_get_attribute_types

Get attribute types.

Description

(array) wc_get_attribute_types(); 

Returns (array)


Usage

  1. if ( !function_exists( 'wc_get_attribute_types' ) ) { 
  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_types(); 
  7.  

Defined (1)

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

/includes/wc-attribute-functions.php  
  1. function wc_get_attribute_types() { 
  2. return (array) apply_filters( 'product_attributes_type_selector', array( 
  3. 'select' => __( 'Select', woocommerce ),  
  4. 'text' => __( 'Text', woocommerce ),  
  5. ) );