product_attributes_type_selector
Get attribute types.
Usage
add_filter( 'product_attributes_type_selector', 'wp_kama_product_attributes_type_selector_filter' );
/**
* Function for `product_attributes_type_selector` filter-hook.
*
* @param $array
*
* @return
*/
function wp_kama_product_attributes_type_selector_filter( $array ){
// filter...
return $array;
}
- $array
- -
Changelog
| Since 2.4.0 | Introduced. |
Where the hook is called
product_attributes_type_selector
woocommerce/includes/wc-attribute-functions.php 253-258
return (array) apply_filters( 'product_attributes_type_selector', array( 'select' => __( 'Select', 'woocommerce' ), ) );