• Hi
    Is there any way to add_filter but only if email type is customer note type?

    For example:

    function przejdz_do_moje_konto ($order_id) {
      $order = new WC_Order( $order_id );
      $status = $order->get_status();
        if ( 'completed' == $status ) {
    		echo '<p>Something</p>';
    	}
    }
    add_filter( 'woocommerce_email_order_details', 'przejdz_do_moje_konto' , 5 );

    Above code will add <p>Something</p> to each email with completed status like email after order is completed but also customer note.

    I would like to add code only for email type: customer note.

  • The topic ‘Email type check’ is closed to new replies.