woocommerce_admin_settings_sanitize_option_$option_name

woocommerce_admin_settings_sanitize_option_$option_name

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_admin_settings_sanitize_option_$option_name') is found 1 times:

  • /includes/admin/class-wc-admin-settings.php line 945
    				 * Sanitize the value of an option by option name.
    				 *
    				 * @since 2.4.0
    				 */
    				$value = apply_filters( "woocommerce_admin_settings_sanitize_option_$option_name", $value, $option, $raw_value );
    
    				if ( is_null( $value ) ) {
    					continue;
    				}
    
    				// Check if option is an array and handle that differently to single values.