Determine if the current product should trigger a low stock notification
true, $product->get_id(
Sortie :
@param int $product_id - The low stock product id
// Modifier la valeur avec le filtre 'woocommerce_should_send_low_stock_notification'
add_filter('woocommerce_should_send_low_stock_notification', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(true) {
// Modifier la valeur
return true;
}
Chargement des actualités...