woocommerce_shipping_(id)_instance_option хук-фильтр . WC 1.0
Использование
add_filter( 'woocommerce_shipping_(id)_instance_option', 'filter_function_name_6240', 10, 3 ); function filter_function_name_6240( $instance_settings[ $key ], $key, $that ){ // filter... return $instance_settings[ $key ]; }
- $instance_settings[ $key ]
- -
- $key
- -
- $that
- -
Где вызывается хук
woocommerce_shipping_(id)_instance_option
woocommerce/includes/abstracts/abstract-wc-shipping-method.php 495
$instance_option = apply_filters( 'woocommerce_shipping_' . $this->id . '_instance_option', $this->instance_settings[ $key ], $key, $this );