woocommerce_widget_settings_sanitize_option хук-фильтр . WC 1.0
Sanitize the value of a setting.
Использование
add_filter( 'woocommerce_widget_settings_sanitize_option', 'filter_function_name_2017', 10, 4 ); function filter_function_name_2017( $instance[ $key ], $new_instance, $key, $setting ){ // filter... return $instance[ $key ]; }
- $instance[ $key ]
- -
- $new_instance
- -
- $key
- -
- $setting
- -
Где вызывается хук
woocommerce_widget_settings_sanitize_option
woocommerce/includes/abstracts/abstract-wc-widget.php 229
$instance[ $key ] = apply_filters( 'woocommerce_widget_settings_sanitize_option', $instance[ $key ], $new_instance, $key, $setting );