woocommerce_gateway_(gateway_id)_settings_values filter-hookWC 1.0

Update options.

Usage

add_filter( 'woocommerce_gateway_(gateway_id)_settings_values', 'wp_kama_woocommerce_gateway_id_settings_values_filter', 10, 2 );

/**
 * Function for `woocommerce_gateway_(gateway_id)_settings_values` filter-hook.
 * 
 * @param  $settings 
 * @param  $gateway  
 *
 * @return 
 */
function wp_kama_woocommerce_gateway_id_settings_values_filter( $settings, $gateway ){

	// filter...
	return $settings;
}
$settings
-
$gateway
-

Where the hook is called

WC_REST_Payment_Gateways_V2_Controller::update_item()
woocommerce_gateway_(gateway_id)_settings_values
woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-payment-gateways-v2-controller.php 211
update_option( $gateway->get_option_key(), apply_filters( 'woocommerce_gateway_' . $gateway->id . '_settings_values', $settings, $gateway ) );

Where the hook is used in WooCommerce

Usage not found.