LoginPress and EDD Compatibility

To get rid of the default and boring login form for your customers, you can use your designed awesome login page with LoginPress.

Here is the scenario for the above situation:

 1. Customer visits My Account page, he will be redirected to your designed login page.

 2. After logging in the customer will be redirected back to its My Account page and see its information as usual.

Here is what you need to do:

 1. First, add the following snippet in your child theme’s file functions.php and update your file after adding the code given below. 

This piece of code will make sure if the user is not logged in and visits its My Account, then it will go directly to your designed login page.
function loginpress_edd_login() {
if ( ! is_user_logged_in() && is_page('my-account') ) {
wp_redirect( wp_login_url() );
exit;
}
}
add_action( 'wp', 'loginpress_edd_login' );

In the above snippet you just need to replace is_page('my-account') with your accounts page slug i.e is_page('my-account-slug') 

2. Now you need to set up redirects for customers so they can redirect to their accounts page on login.

Here is where our “LoginPress Login Redirectsaddon will come to action.

 1. Install and active Login Redirects addon.

 2. Navigate to Login Redirects setting page.

 3. Choose the Specific Roles tab.

 4. Search your customer’s role i.e. “Customer

 5. Now add your “My Accounts” page URL in Login URL filed e.g www.mysite.com/my-account

 6. Then add your desired logout page URL for customers in the Logout URL field, this can be your site default landing page e.g www.mysite.com or just simply “/”

This is it, all done. 

Easy right! Now you can show off your awesome login page to your customers.

Still stuck? How can we help?

Updated on September 13, 2021

Documentation
LoginPress Support
triangular shape yellowish icon

Frequently Asked Questions

Try to find your solution with the frequently asked questions about or services.

three shapes icon

Is LoginPress WPML Compatible?

LoginPress is fully supported with multilingual. LoginPress is also compatible with WPML Plugin, which means you can easily translate your login page with WPML plugin according to the given translation options in the WPML plugin.

Is LoginPress translation ready?

Yes, LoginPress has full translation and localization support via the LoginPress textdomain. All .mo and .po translation files should go into the languages folder in the base of the plugin.

Is coding skills needed to use LoginPress?

No, It is very easy to setup. Just plug and play. Have fun!

How to Install or Use LoginPress Pro?

Step-by-step instructions on How to Upgrade from existing Free version to Pro
1. You have installed and set up the Free version already.
2. Upload the Pro version.
3. Pro features will be enabled automatically.
4. You don’t need to set up Free version options again.
5. Setup Pro features like Google fonts, Google reCaptcha, Choose themes, etc.

Where is my license key?

License key is the Order ID which looks like in this format.
WHI150807-1234-12345
You can find it in the email Sales Receipt.

three shapes icon

If you Still have Questions?

Get In Touch