• Hi there, I’ve read the previous thread regarding editing the plugin so that it doesn’t work on some processing emails of woocommerce. However, I still seem to have some issues after playing around with it. The code below is edited to just send emails when an order is set to ‘on-hold’.

    public function email_instructions( $order, $sent_to_admin, $plain_text = false ) {
    			if ( $this->instructions && ! $sent_to_admin && 'emt' === $order->get_payment_method() && 
    				( $order->has_status('on-hold') ) ) {
    				echo wpautop( wptexturize( $this->get_instructions( $order ) ) ) . PHP_EOL;
    			}
    		}

    It should only show the EMT instructions on ‘on-hold’ status, but when an admin changes the status of an order from ‘on-hold’ to ‘completed’, the EMT message still shows.

    Thank you for your help.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Unintentional EMT Message Showing on Processing Emails’ is closed to new replies.