woocommerce_email_customer_address_section

ACTION woocommerce\templates\emails\plain\email-addresses.php (ligne 41) github
Fires after the core address fields in emails.

Paramètres

Entrée :
'billing', $order, $sent_to_admin, true
Sortie :
@param string $type Address type. Either 'billing' or 'shipping'.
@param WC_Order $order Order instance.
@param bool $sent_to_admin If this email is being sent to the admin or not.
@param bool $plain_text If this email is plain text or not.

Utilisation

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

function ma_fonction_personnalisee('billing', $order, $sent_to_admin, true) {
    // Votre code ici
    error_log('Hook woocommerce_email_customer_address_section déclenché');
}

Actualités

Chargement des actualités...