wc_before_products_ending_sales

ACTION woocommerce\includes\wc-product-functions.php (ligne 566) github
Function which handles the start and end of scheduled sales via cron.

Paramètres

Entrée :
$product_ids
Sortie :
N/A

Utilisation

// Ajouter une fonction au hook action 'wc_before_products_ending_sales'
add_action('wc_before_products_ending_sales', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee($product_ids) {
    // Votre code ici
    error_log('Hook wc_before_products_ending_sales déclenché');
}

Actualités

Chargement des actualités...