woocommerce_settings_api_sanitized_fields_(id)
Usage
add_filter( 'woocommerce_settings_api_sanitized_fields_(id)', 'wp_kama_woocommerce_settings_api_sanitized_fields_id_filter' ); /** * Function for `woocommerce_settings_api_sanitized_fields_(id)` filter-hook. * * @param $settings * * @return */ function wp_kama_woocommerce_settings_api_sanitized_fields_id_filter( $settings ){ // filter... return $settings; }
- $settings
- -
Where the hook is called
woocommerce_settings_api_sanitized_fields_(id)
woocommerce_settings_api_sanitized_fields_(id)
woocommerce/includes/abstracts/abstract-wc-settings-api.php 197
return update_option( $this->get_option_key(), apply_filters( 'woocommerce_settings_api_sanitized_fields_' . $this->id, $this->settings ), 'yes' );
woocommerce/includes/abstracts/abstract-wc-settings-api.php 238
return update_option( $option_key, apply_filters( 'woocommerce_settings_api_sanitized_fields_' . $this->id, $this->settings ), 'yes' ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment