woocommerce_analytics_delete_customer

ACTION woocommerce\src\Admin\API\Reports\Customers\DataStore.php (ligne 922) github
Fires when a customer is deleted.

Paramètres

Entrée :
$customer_id
Sortie :
@param int $order_id Order ID.

Utilisation

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

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

Actualités

Chargement des actualités...