woocommerce_customer_stock_notifications_product_sync

ACTION woocommerce\src\Internal\StockNotifications\StockSyncController.php (ligne 154) github
Allows for additional processing of the product IDs after they have been queued.

Paramètres

Entrée :
$product_ids
Sortie :
@param array $product_ids The product IDs to process.

Utilisation

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

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

Actualités

Chargement des actualités...