woocommerce_email_headers

woocommerce_email_headers

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_email_headers') is found 5 times:

  • /includes/class-wc-emails.php line 778
    774
    775
    776
    777
    778
    779
    780
    781
    782
    783
    784
        wp_mail(
            apply_filters( 'woocommerce_email_recipient_low_stock', get_option( 'woocommerce_stock_email_recipient' ), $product, null ),
            apply_filters( 'woocommerce_email_subject_low_stock', $subject, $product, null ),
            apply_filters( 'woocommerce_email_content_low_stock', $message, $product ),
            apply_filters( 'woocommerce_email_headers', '', 'low_stock', $product, null ),
            apply_filters( 'woocommerce_email_attachments', array(), 'low_stock', $product, null )
        );
    }
     
    /**
     * No stock notification email.
  • /includes/class-wc-emails.php line 812
    808
    809
    810
    811
    812
    813
    814
    815
    816
    817
    818
        wp_mail(
            apply_filters( 'woocommerce_email_recipient_no_stock', get_option( 'woocommerce_stock_email_recipient' ), $product, null ),
            apply_filters( 'woocommerce_email_subject_no_stock', $subject, $product, null ),
            apply_filters( 'woocommerce_email_content_no_stock', $message, $product ),
            apply_filters( 'woocommerce_email_headers', '', 'no_stock', $product, null ),
            apply_filters( 'woocommerce_email_attachments', array(), 'no_stock', $product, null )
        );
    }
     
    /**
     * Backorder notification email.
  • /includes/class-wc-emails.php line 850
    846
    847
    848
    849
    850
    851
    852
    853
    854
    855
    856
        wp_mail(
            apply_filters( 'woocommerce_email_recipient_backorder', get_option( 'woocommerce_stock_email_recipient' ), $args, null ),
            apply_filters( 'woocommerce_email_subject_backorder', $subject, $args, null ),
            apply_filters( 'woocommerce_email_content_backorder', $message, $args ),
            apply_filters( 'woocommerce_email_headers', '', 'backorder', $args, null ),
            apply_filters( 'woocommerce_email_attachments', array(), 'backorder', $args, null )
        );
    }
     
    /**
     * Adds Schema.org markup for order in JSON-LD format.
  • /includes/emails/class-wc-email.php line 580
    576
    577
    578
    579
    580
    581
    582
    583
    584
    585
    586
                $header .= 'Bcc: ' . sanitize_text_field( $bcc ) . "\r\n";
            }
        }
     
        return apply_filters( 'woocommerce_email_headers', $header, $this->id, $this->object, $this );
    }
     
    /**
     * Get email attachments.
     *
     * @return array
  • /src/Internal/Admin/Notes/EmailNotification.php line 100
    096
    097
    098
    099
    100
    101
    102
    103
    104
    105
    106
    * @return string
     */
    public function get_headers() {
        $header = 'Content-Type: ' . $this->get_content_type() . "\r\n";
        return apply_filters( 'woocommerce_email_headers', $header, $this->id, $this->object, $this );
    }
     
    /**
     * Get email subject.
     *
     * @return string

Examples using woocommerce_email_headers