wc_product_weight_enabled хук-фильтр . WC 1.0
Returns whether or not product weights are enabled.
Использование
add_filter( 'wc_product_weight_enabled', 'filter_function_name_5692' ); function filter_function_name_5692( $true ){ // filter... return $true; }
- $true
- -
Где вызывается хук
wc_product_weight_enabled
woocommerce/includes/wc-product-functions.php 103
return apply_filters( 'wc_product_weight_enabled', true );