• Resolved ssoulless

    (@ssoulless)


    Hello, I need to programmatically customize the $email_heading for the order_processing email.

    I have researched but the tutorials I can find force me to completely customize the email header template but I just want to change the $email_heading text.

    Any idea?

    Is there any hook to modify this heading programmatically? Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support kellymetal a11n

    (@kellymetal)

    Hi there,

    Yes, there is a woocommerce_email_heading_customer_processing_order filter that you can use for that — something like the following will allow you to set it how you want:

    
    // Set a custom heading for Customer Processing email
    function my_custom_processing_email_heading( $heading ) {
        $heading = "This is my custom heading!";
        return $heading;
    }
    add_filter( 'woocommerce_email_heading_customer_processing_order', 'my_custom_processing_email_heading', 10, 2 );
    

    I hope that helps!

    Hi @ssoulless,

    It’s been a while since we’ve heard from you so I”m marking this thread resolved. Hopefully that code snippet worked for you. If you need anything else, please open up a new thread and we’ll be happy to help out.

    Take care!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to programatically customize $email_heading’ is closed to new replies.