product_attributes_type_selector хук-фильтр . WC 2.4.0
Get attribute types.
Использование
add_filter( 'product_attributes_type_selector', 'filter_function_name_3934' ); function filter_function_name_3934( $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' ), ) );