woocommerce_update_new_customer_past_order

ACTION woocommerce\includes\wc-user-functions.php (ligne 356) github
Get past orders (by email) and update them.

Paramètres

Entrée :
$order_id, $customer
Sortie :
@param  int $customer_id Customer ID.
@return int

Utilisation

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

function ma_fonction_personnalisee($order_id, $customer) {
    // Votre code ici
    error_log('Hook woocommerce_update_new_customer_past_order déclenché');
}

Actualités

Chargement des actualités...