product_attributes_type_selector
Get attribute types.
Использование
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
- -
Список изменений
С версии 2.4.0 | Введена. |
Где вызывается хук
product_attributes_type_selector
woocommerce/includes/wc-attribute-functions.php 251-256
return (array) apply_filters( 'product_attributes_type_selector', array( 'select' => __( 'Select', 'woocommerce' ), ) );