Last active
August 29, 2015 14:10
-
-
Save tamarazuk/e78c9b20e965d2a62751 to your computer and use it in GitHub Desktop.
WooCommerce Mollie Gateway - Reorder Mollie payment options
This file contains hidden or 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 wc_mollie_reorder_gateways( $gateways ) { | |
$gateway_order = array( | |
// Rearrange these payment options into the order you wish | |
'WC_Gateway_Mollie_iDEAL', | |
'WC_Gateway_Mollie_CreditCard', | |
'WC_Gateway_Mollie_MisterCash', | |
'WC_Gateway_Mollie_BankTransfer', | |
'WC_Gateway_Mollie_Bitcoin', | |
'WC_Gateway_Mollie_PayPal', | |
'WC_Gateway_Mollie_Paysafecard', | |
'WC_Gateway_Mollie_SOFORT', | |
'WC_Gateway_Mollie_Belfius', | |
); | |
return array_intersect( $gateway_order, $gateways ); | |
} | |
add_filter( 'wc_gateway_mollie_gateways', 'wc_mollie_reorder_gateways' ); |
Same here... does not seem to work.. could you please give an update on this snippet?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried this snipped in the latests version without any luck... Any idea?