woocommerce_shipping_(method_id)_instance_settings_values filter-hookWC 1.0

Usage

add_filter( 'woocommerce_shipping_(method_id)_instance_settings_values', 'wp_kama_woocommerce_shipping_method_id_instance_settings_values_filter', 10, 2 );

/**
 * Function for `woocommerce_shipping_(method_id)_instance_settings_values` filter-hook.
 * 
 * @param  $instance_settings 
 * @param  $method            
 *
 * @return 
 */
function wp_kama_woocommerce_shipping_method_id_instance_settings_values_filter( $instance_settings, $method ){

	// filter...
	return $instance_settings;
}
$instance_settings
-
$method
-

Where the hook is called

WC_REST_Shipping_Zone_Methods_V2_Controller::update_fields()
woocommerce_shipping_(method_id)_instance_settings_values
woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-methods-v2-controller.php 320
update_option( $method->get_instance_option_key(), apply_filters( 'woocommerce_shipping_' . $method->id . '_instance_settings_values', $instance_settings, $method ) );

Where the hook is used in WooCommerce

Usage not found.