woocommerce_email_after_fulfillment_table

ACTION woocommerce\templates\emails\plain\email-fulfillment-details.php (ligne 91) github
Action hook to add custom content after fulfillment details in email.

Paramètres

Entrée :
$order, $fulfillment, $sent_to_admin, $plain_text, $email
Sortie :
@param WC_Order $order Order object.
@param bool     $sent_to_admin Whether it's sent to admin or customer.
@param bool     $plain_text Whether it's a plain text email.
@param WC_Email $email Email object.

Utilisation

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

function ma_fonction_personnalisee($order, $fulfillment, $sent_to_admin, $plain_text, $email) {
    // Votre code ici
    error_log('Hook woocommerce_email_after_fulfillment_table déclenché');
}

Actualités

Chargement des actualités...