woocommerce_gateway_(gateway_id)_settings_values хук-фильтрWC 1.0

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

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
-

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

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 ) );

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

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