woocommerce_shipping_(id)_instance_option хук-фильтрWC 1.0

Использование

add_filter( 'woocommerce_shipping_(id)_instance_option', 'wp_kama_woocommerce_shipping_id_instance_option_filter', 10, 3 );

/**
 * Function for `woocommerce_shipping_(id)_instance_option` filter-hook.
 * 
 * @param  $key ] 
 * @param  $key   
 * @param  $that  
 *
 * @return 
 */
function wp_kama_woocommerce_shipping_id_instance_option_filter( $key ], $key, $that ){

	// filter...
	return $key ];
}
$key ]
-
$key
-
$that
-

Где вызывается хук

WC_Shipping_Method::get_instance_option()
woocommerce_shipping_(id)_instance_option
woocommerce/includes/abstracts/abstract-wc-shipping-method.php 519
$instance_option = apply_filters( 'woocommerce_shipping_' . $this->id . '_instance_option', $this->instance_settings[ $key ], $key, $this );

Где используется хук в WooCommerce

Использование не найдено.