woocommerce_email_header

woocommerce_email_header

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

do_action('woocommerce_email_header') is found 16 times:

  • /includes/class-wc-emails.php line 368
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    public function wrap_message( $email_heading, $message, $plain_text = false ) {
        // Buffer.
        ob_start();
     
        do_action( 'woocommerce_email_header', $email_heading, null );
     
        echo wpautop( wptexturize( $message ) ); // WPCS: XSS ok.
     
        do_action( 'woocommerce_email_footer', null );
     
        // Get contents.
  • /includes/react-admin/emails/html-admin-report-export-download.php line 13

    /*
    * @hooked WC_Emails::email_header() Output the email header
    */
    do_action( ‘woocommerce_email_header’, $email_heading, $email );

    ?>

  • /includes/react-admin/emails/html-merchant-notification.php line 13
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    /*
     * @hooked WC_Emails::email_header() Output the email header
     */
    do_action( 'woocommerce_email_header', $email_heading, $email );
    ?>
     
    <?php if ( isset( $email_image ) ) { ?>
    <div>
        <img src="<?php echo esc_url( $email_image ); ?>" style="display: block; margin-bottom: 24px; width: 180px;"/>
    </div>
  • /templates/emails/admin-cancelled-order.php line 29
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    /*
     * @hooked WC_Emails::email_header() Output the email header
    */
    do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
     
    <?php
    echo $email_improvements_enabled ? '<div class="email-introduction">' : '';
    /* translators: %1$s: Order number. %2$s: Customer full name */
    $text = __( 'Notification to let you know &mdash; order #%1$s belonging to %2$s has been cancelled:', 'woocommerce' );
    if ( $email_improvements_enabled ) {
  • /templates/emails/admin-failed-order.php line 29
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    /*
     * @hooked WC_Emails::email_header() Output the email header
     */
    do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
     
    <?php
    echo $email_improvements_enabled ? '<div class="email-introduction">' : '';
    /* translators: %1$s: Order number. %2$s: Customer full name. */
    $text = __( 'Payment for order #%1$s from %2$s has failed. The order was as follows:', 'woocommerce' );
    if ( $email_improvements_enabled ) {
  • /templates/emails/admin-new-order.php line 27
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    /*
     * @hooked WC_Emails::email_header() Output the email header
     */
    do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
     
    <?php
    echo $email_improvements_enabled ? '<div class="email-introduction">' : '';
    /* translators: %s: Customer billing full name */
    $text = __( 'You’ve received the following order from %s:', 'woocommerce' );
    if ( $email_improvements_enabled ) {
  • /templates/emails/customer-completed-order.php line 29
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    /*
     * @hooked WC_Emails::email_header() Output the email header
     */
    do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
     
    <?php echo $email_improvements_enabled ? '<div class="email-introduction">' : ''; ?>
    <p>
    <?php
    if ( ! empty( $order->get_billing_first_name() ) ) {
        /* translators: %s: Customer first name */
  • /templates/emails/customer-failed-order.php line 32
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    *
     * @hooked WC_Emails::email_header() Output the email header
     * @since 3.7.0
     */
    do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
     
    <?php echo $email_improvements_enabled ? '<div class="email-introduction">' : ''; ?>
    <p>
    <?php
    if ( ! empty( $order->get_billing_first_name() ) ) {
        /* translators: %s: Customer first name */
  • /templates/emails/customer-invoice.php line 32
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    * Executes the e-mail header.
     *
     * @hooked WC_Emails::email_header() Output the email header
     */
    do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
     
    <?php echo $email_improvements_enabled ? '<div class="email-introduction">' : ''; ?>
    <p>
    <?php
    if ( ! empty( $order->get_billing_first_name() ) ) {
        /* translators: %s: Customer first name */
  • /templates/emails/customer-new-account-blocks.php line 26
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    * @hooked WC_Emails::email_header()
     *
     * @since 3.7.0
     */
    do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
     
    <?php echo $email_improvements_enabled ? '<div class="email-introduction">' : ''; ?>
    <?php /* translators: %s: Customer username */ ?>
    <p><?php printf( esc_html__( 'Hi %s,', 'woocommerce' ), esc_html( $user_login ) ); ?></p>
    <?php if ( $email_improvements_enabled ) : ?>
        <?php /* translators: %s: Site title */ ?>
  • /templates/emails/customer-new-account.php line 24
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    defined( 'ABSPATH' ) || exit;
     
    $email_improvements_enabled = FeaturesUtil::feature_is_enabled( 'email_improvements' );
     
    do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
     
    <?php echo $email_improvements_enabled ? '<div class="email-introduction">' : ''; ?>
    <?php /* translators: %s: Customer username */ ?>
    <p><?php printf( esc_html__( 'Hi %s,', 'woocommerce' ), esc_html( $user_login ) ); ?></p>
    <?php if ( $email_improvements_enabled ) : ?>
        <?php /* translators: %s: Site title */ ?>
  • /templates/emails/customer-note.php line 29
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    /*
     * @hooked WC_Emails::email_header() Output the email header
     */
    do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
     
    <?php echo $email_improvements_enabled ? '<div class="email-introduction">' : ''; ?>
    <p>
    <?php
    if ( ! empty( $order->get_billing_first_name() ) ) {
        /* translators: %s: Customer first name */
  • /templates/emails/customer-on-hold-order.php line 27
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    /*
     * @hooked WC_Emails::email_header() Output the email header
     */
    do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
     
    <?php echo $email_improvements_enabled ? '<div class="email-introduction">' : ''; ?>
    <p>
    <?php
    if ( ! empty( $order->get_billing_first_name() ) ) {
        /* translators: %s: Customer first name */
  • /templates/emails/customer-processing-order.php line 29
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    /*
     * @hooked WC_Emails::email_header() Output the email header
     */
    do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
     
    <?php echo $email_improvements_enabled ? '<div class="email-introduction">' : ''; ?>
    <p>
    <?php
    if ( ! empty( $order->get_billing_first_name() ) ) {
        /* translators: %s: Customer first name */
  • /templates/emails/customer-refunded-order.php line 27
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    /*
     * @hooked WC_Emails::email_header() Output the email header
     */
    do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
     
    <?php echo $email_improvements_enabled ? '<div class="email-introduction">' : ''; ?>
    <p>
    <?php
    if ( ! empty( $order->get_billing_first_name() ) ) {
        /* translators: %s: Customer first name */
  • /templates/emails/customer-reset-password.php line 28
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    $email_improvements_enabled = FeaturesUtil::feature_is_enabled( 'email_improvements' );
     
    ?>
     
    <?php do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
     
    <?php echo $email_improvements_enabled ? '<div class="email-introduction">' : ''; ?>
    <?php /* translators: %s: Customer username */ ?>
    <p><?php printf( esc_html__( 'Hi %s,', 'woocommerce' ), esc_html( $user_login ) ); ?></p>
    <?php /* translators: %s: Store name */ ?>
    <p><?php printf( esc_html__( 'Someone has requested a new password for the following account on %s:', 'woocommerce' ), esc_html( $blogname ) ); ?></p>
  • See this hook used in plugins: