In my woocommerce store I have activated the payments instructions and they are displayed on all email notifications. I have the following code (taken from another answer), that remove payment instructions for "COD" payment method:
add_action( 'woocommerce_email_before_order_table', function(){
if ( ! class_exists( 'WC_Payment_Gateways' ) ) return;
$gateways = WC_Payment_Gateways::instance(); // gateway instance
$available_gateways = $gateways->get_available_payment_gateways();
if ( isset( $available_gateways['cod'] ) )
remove_action( 'woocommerce_email_before_order_table', array( $available_gateways['cod'], 'email_instructions' ), 10, 3 );
}, 1 );
It is applied globally on all email notifications and I need to remove the payment instructions only from "Customer completed order" email notification.
Any help is appreciated.