WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Самая быстрая Тема-конструктор для WordPress
фильтр не описан

woocommerce_admin_settings_sanitize_option_(option) хук-фильтр . WC 2.4.0

Sanitize the value of an option by option name.

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

add_filter( 'woocommerce_admin_settings_sanitize_option_(option)', 'filter_function_name_9601', 10, 3 );
function filter_function_name_9601( $value, $option, $raw_value ){
	// filter...

	return $value;
}
$value
-
$option
-
$raw_value
-

Список изменений

С версии 2.4.0 Введена.

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

WC_Admin_Settings::save_fields()
woocommerce_admin_settings_sanitize_option_(option)
woocommerce/includes/admin/class-wc-admin-settings.php 829
$value = apply_filters( "woocommerce_admin_settings_sanitize_option_$option_name", $value, $option, $raw_value );

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

woocommerce/includes/admin/class-wc-admin-settings.php 1096
add_filter( 'woocommerce_admin_settings_sanitize_option_woocommerce_price_decimal_sep', 'wc_format_option_price_separators', 10, 3 );
woocommerce/includes/admin/class-wc-admin-settings.php 1471
add_filter( 'woocommerce_admin_settings_sanitize_option_woocommerce_myaccount_orders_endpoint', 'wc_sanitize_endpoint_slug', 10, 1 );
woocommerce/includes/admin/class-wc-admin-settings.php 1477
add_filter( 'woocommerce_admin_settings_sanitize_option_woocommerce_myaccount_lost_password_endpoint', 'wc_sanitize_endpoint_slug', 10, 1 );
woocommerce/includes/admin/class-wc-admin-settings.php 1476
add_filter( 'woocommerce_admin_settings_sanitize_option_woocommerce_myaccount_payment_methods_endpoint', 'wc_sanitize_endpoint_slug', 10, 1 );
woocommerce/includes/admin/class-wc-admin-settings.php 1475
add_filter( 'woocommerce_admin_settings_sanitize_option_woocommerce_myaccount_edit_address_endpoint', 'wc_sanitize_endpoint_slug', 10, 1 );
woocommerce/includes/admin/class-wc-admin-settings.php 1474
add_filter( 'woocommerce_admin_settings_sanitize_option_woocommerce_myaccount_edit_account_endpoint', 'wc_sanitize_endpoint_slug', 10, 1 );
woocommerce/includes/admin/class-wc-admin-settings.php 1473
add_filter( 'woocommerce_admin_settings_sanitize_option_woocommerce_myaccount_downloads_endpoint', 'wc_sanitize_endpoint_slug', 10, 1 );
woocommerce/includes/admin/class-wc-admin-settings.php 1472
add_filter( 'woocommerce_admin_settings_sanitize_option_woocommerce_myaccount_view_order_endpoint', 'wc_sanitize_endpoint_slug', 10, 1 );
woocommerce/includes/admin/class-wc-admin-settings.php 1470
add_filter( 'woocommerce_admin_settings_sanitize_option_woocommerce_myaccount_set_default_payment_method_endpoint', 'wc_sanitize_endpoint_slug', 10, 1 );
woocommerce/includes/admin/class-wc-admin-settings.php 1097
add_filter( 'woocommerce_admin_settings_sanitize_option_woocommerce_price_thousand_sep', 'wc_format_option_price_separators', 10, 3 );
woocommerce/includes/admin/class-wc-admin-settings.php 1469
add_filter( 'woocommerce_admin_settings_sanitize_option_woocommerce_myaccount_delete_payment_method_endpoint', 'wc_sanitize_endpoint_slug', 10, 1 );
woocommerce/includes/admin/class-wc-admin-settings.php 1468
add_filter( 'woocommerce_admin_settings_sanitize_option_woocommerce_myaccount_add_payment_method_endpoint', 'wc_sanitize_endpoint_slug', 10, 1 );
woocommerce/includes/admin/class-wc-admin-settings.php 1467
add_filter( 'woocommerce_admin_settings_sanitize_option_woocommerce_checkout_order_received_endpoint', 'wc_sanitize_endpoint_slug', 10, 1 );
woocommerce/includes/admin/class-wc-admin-settings.php 1466
add_filter( 'woocommerce_admin_settings_sanitize_option_woocommerce_checkout_pay_endpoint', 'wc_sanitize_endpoint_slug', 10, 1 );
woocommerce/includes/admin/class-wc-admin-settings.php 1133
add_filter( 'woocommerce_admin_settings_sanitize_option_woocommerce_hold_stock_minutes', 'wc_format_option_hold_stock_minutes', 10, 3 );
woocommerce/includes/admin/class-wc-admin-settings.php 1111
add_filter( 'woocommerce_admin_settings_sanitize_option_woocommerce_price_num_decimals', 'wc_format_option_price_num_decimals', 10, 3 );
woocommerce/includes/admin/class-wc-admin-settings.php 1478
add_filter( 'woocommerce_admin_settings_sanitize_option_woocommerce_logout_endpoint', 'wc_sanitize_endpoint_slug', 10, 1 );