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.9.5

do_action('woocommerce_email_header') is found 17 times:

  • /includes/class-wc-emails.php line 365
    	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 );

    ?>

  • /templates/emails/admin-cancelled-order.php line 29
     
    /*
     * @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
     
    /*
     * @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
     
    /*
     * @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
     
    /*
     * @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
     *
     * @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
     * 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
     * @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
    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
     
    /*
     * @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
     
    /*
     * @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-pos-completed-order.php line 32
     *
     * @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-pos-refunded-order.php line 30
     *
     * @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-processing-order.php line 29
     
    /*
     * @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
     
    /*
     * @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
    $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: