Find out in this tutorial how to reverse the order of payment methods on the Restrict Content Pro registration page using code.
By default, Restrict Content Pro displays the payment methods in the same order as they are in your settings section. That is, if you have activated PayPal and Stripe as payment methods they will be displayed in this order:
But it’s likely that in most situations you’ll prefer the first option, which comes pre-selected, to be debit/credit card (Stripe). In fact, a couple of subscribers have already asked me about this option.
And the good news is that with a little bit of code you can get it:
Let’s see how:
Snippet to change the order of the Restrict Content Pro checkout payment methods
Add the following code at the end of functions.php or in your functionality plugin:
With this simple snippet you can reverse the order of the gateways so that the card payment will be the pre-selected one.
Also, if after a while you want to remove the PayPal payment option for new subscriptions you can add this CSS snippet to the style.css file:
So the old PayPal subscriptions will continue to be processed without problems but the new ones will only support card payments (Stripe).
Now you know how to reverse the order of payment methods on the Restrict Content Pro checkout page with a little bit of code.
Any questions? Let me know in the comments.
And if you want to give me any suggestion for future tutorials, leave it in the contact form. Advantages of being a subscriber. 😉