Cast woocommerce_notify_no_stock_amount value to absint on save

This commit is contained in:
bartech 2023-04-19 20:12:28 +02:00
parent 224284051b
commit dda5fe9b1d
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ class WC_Settings_Products extends WC_Settings_Page {
$this->label = __( 'Products', 'woocommerce' );
parent::__construct();
add_filter( 'woocommerce_admin_settings_sanitize_option_woocommerce_notify_no_stock_amount', 'absint' );
}
/**