• Resolved gore.m

    (@gorem)


    Hello,

    I would like to standardize structure of email subjects (for all WOO emails).
    Im using all available filters from here https://docs.woocommerce.com/document/change-email-subject-lines/ but what about “On hold”, “Cancelled”, “Refunded” and “Failed order” email subjects?
    How can I change email subject for those emails?

    Thanks you

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

    (@johndcoy)

    Automattic Happiness Engineer

    Hi @gorem

    You should be able to. Have you tried using the following filters for each?

    woocommerce_email_subject_on_hold_order woocommerce_email_subject_cancelled_order
    woocommerce_email_subject_failed_order

    Thread Starter gore.m

    (@gorem)

    Thanks you @johndcoy

    I already have solution. For anyone who is looking for same solution, here is an complete example Im using for failed order:

    	add_filter( 'woocommerce_email_subject_failed_order', 'customizing_failed_email_subject', 10, 2 );
    	function customizing_failed_email_subject( $formated_subject, $order ){
    		return sprintf( esc_html__( 'ANYTHING YOU WANT - Your order #%s failed', 'textdomain'), $order->get_id() );
    	}  
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Email subjects for “On hold”, “Cancelled”, “Refunded”, “Failed order”’ is closed to new replies.