Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $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 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement