product_type_selector хук-фильтр . WC 2.2
Get product types.
Использование
add_filter( 'product_type_selector', 'filter_function_name_163' ); function filter_function_name_163( $array ){ // filter... return $array; }
- $array
- -
Список изменений
С версии 2.2 | Введена. |
Где вызывается хук
product_type_selector
woocommerce/includes/wc-product-functions.php 570-578
return (array) apply_filters( 'product_type_selector', array( 'simple' => __( 'Simple product', 'woocommerce' ), 'grouped' => __( 'Grouped product', 'woocommerce' ), 'external' => __( 'External/Affiliate product', 'woocommerce' ), 'variable' => __( 'Variable product', 'woocommerce' ), ) );