Skip to content

Instantly share code, notes, and snippets.

@tamarazuk
Last active August 29, 2015 14:10
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save tamarazuk/e78c9b20e965d2a62751 to your computer and use it in GitHub Desktop.
WooCommerce Mollie Gateway - Reorder Mollie payment options
<?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' );
@nielsvr
Copy link

nielsvr commented Dec 19, 2014

I tried this snipped in the latests version without any luck... Any idea?

@Hildebrand
Copy link

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