Add to cart messages.
$products, $show_qty = false, $return = false
Sortie :
@param int|array $products Product ID list or single product ID. @param bool $show_qty Should quantities be shown? Added in 2.6.0. @param bool $return Return message rather than add it. @return mixed
// Utilisation de la fonction wc_add_to_cart_message
$result = wc_add_to_cart_message($products, $show_qty = false, $return = false);
if ($result) {
// Votre logique ici
}
Chargement des actualités...