Hi There,
Woocommerce adds payment methods to emails, and our plugin doesn’t handle them.
As I can see in your screenshot, you are using COD payment method. You can remove payment info from email using following code snippet in your child theme functions.php, or you can use code snippet plugin.
function kadence_custom_remove_instructions(){
if ( ! class_exists( 'WC_Payment_Gateways' ) ) {
return;
}
$gateways = WC_Payment_Gateways::instance(); // gateway instance
$available_gateways = $gateways->get_available_payment_gateways();
// Add only the email instructions
if ( ! $sent_to_admin && 'cod' === $order->payment_method && $order->has_status( 'completed' ) ) {
if ( $gateway->instructions ) {
echo wpautop( wptexturize( $gateway->instructions ) ) . PHP_EOL;
}
if ( isset( $available_gateways['cod'] ) ) {
remove_action( 'woocommerce_email_before_order_table', array( $available_gateways['cod'], 'email_instructions' ), 10, 3 );
}
}
}
add_action( 'woocommerce_email_before_order_table', 'kadence_custom_remove_instructions', 1 );
Note:
- It will hide payment methods from all WooCommerce emails. If you want to do further customization, I recommend contacting WooCommerce support.
- If you are using another payment method, then you have to add those in code snippet. For reference, please check the link: https://ww.wp.xz.cn/support/topic/hide-remove-bacs-instructions-details-from-email/
I hope this helps, and let us know if we can assist you further.
Best Regards,
Archita