• Skip to primary navigation
  • Skip to main content
OsomCode

OsomCode

Awesome code tutorials for WordPress and Genesis

  • Subscribe
  • My account
    • Edit profile
    • Favorites
    • Update credit card
  • Login

Reverse payment methods order in Restrict Content Pro checkout

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:

Default order of payment methods in Restrict Content Pro
Default order of payment methods in Restrict Content Pro

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:

Reverse order of payment methods in Restrict Content Pro.
Reverse order of payment methods in Restrict Content Pro

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:

To see this and another 847 code snippets of this website, login or subscribe here.

With this simple snippet you can reverse the order of the gateways so that the card payment will be the pre-selected one.

Reverse order of payment methods in Restrict Content Pro.
Reverse order of payment methods in Restrict Content Pro

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:

To see this and another 847 code snippets of this website, login or subscribe here.

So the old PayPal subscriptions will continue to be processed without problems but the new ones will only support card payments (Stripe).

Conclusions

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. 😉

PHP Restrict Content Pro

To leave read and make questions about this code, you can login or register.

  • About OsomCode
  • FAQ
  • Contact

Legal Notice · Privacy Policy · Cookie Policy · Terms and conditions
Copyright © 2023

Lost your password?