Fires after the core address fields in emails.
'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.
// 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é');
}
Chargement des actualités...