woocommerce_shipping_rate_cost хук-фильтр . WC 3.2.0
Set rate cost.
Использование
add_filter( 'woocommerce_shipping_rate_cost', 'filter_function_name_3669', 10, 2 ); function filter_function_name_3669( $data_cost, $that ){ // filter... return $data_cost; }
- $data_cost
- -
- $that
- -
Список изменений
С версии 3.2.0 | Введена. |
Где вызывается хук
woocommerce_shipping_rate_cost
woocommerce/includes/class-wc-shipping-rate.php 210
return apply_filters( 'woocommerce_shipping_rate_cost', $this->data['cost'], $this );