Created
May 6, 2014 03:49
-
-
Save claudiosanches/80925254461bf9380c5a to your computer and use it in GitHub Desktop.
WooCommerce MercadoPago - Exclude ticket/boleto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function custom_wc_mercadopago_args( $args ) { | |
$args['payment_methods'] = array( | |
'excluded_payment_types' => array( | |
array( 'id' => 'ticket' ) | |
) | |
); | |
return $args; | |
} | |
add_action( 'woocommerce_mercadopago_args', 'custom_wc_mercadopago_args' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment