Get past orders (by email) and update them.
$order_id, $customer
Sortie :
@param int $customer_id Customer ID. @return int
// 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é');
}
Chargement des actualités...