woocommerce_shipping_(id)_option filter-hookWC 1.0

Return global option.

Usage

add_filter( 'woocommerce_shipping_(id)_option', 'wp_kama_woocommerce_shipping_id_option_filter', 10, 3 );

/**
 * Function for `woocommerce_shipping_(id)_option` filter-hook.
 * 
 * @param  $option 
 * @param  $key    
 * @param  $that   
 *
 * @return 
 */
function wp_kama_woocommerce_shipping_id_option_filter( $option, $key, $that ){

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

Where the hook is called

WC_Shipping_Method::get_option()
woocommerce_shipping_(id)_option
woocommerce/includes/abstracts/abstract-wc-shipping-method.php 469
$option = apply_filters( 'woocommerce_shipping_' . $this->id . '_option', parent::get_option( $key, $empty_value ), $key, $this );

Where the hook is used in WooCommerce

Usage not found.