woocommerce_format_weight хук-фильтр . WC 1.0
Использование
add_filter( 'woocommerce_format_weight', 'filter_function_name_3928', 10, 2 ); function filter_function_name_3928( $weight_string, $weight ){ // filter... return $weight_string; }
- $weight_string
- -
- $weight
- -
Где вызывается хук
woocommerce_format_weight
woocommerce/includes/wc-formatting-functions.php 1300
return apply_filters( 'woocommerce_format_weight', $weight_string, $weight );