• Resolved karthic24

    (@karthic24)


    Hello, I’m utilizing WP Bouncer to restrict simultaneous logins on my website alongside Paid Membership Pro. Although it effectively limits concurrent logins, I encountered an issue where it redirected to the default wp-login page. To address this, I implemented some code to redirect users to the Paid Membership Pro login page. However, a new challenge emerged – in the previous scenario, it displayed a warning message to users about simultaneous logins. After applying the redirection code, this warning message is no longer visible.

    I’ve noticed that the Paid Membership Pro login page does show an error message for incorrect passwords or usernames. I’m wondering if I can leverage this functionality to display an error message for simultaneous logins. The code I currently use for redirection is provided below. Thank you for your assistance.

    add_filter('wp_bouncer_redirect_url', 'custom_bouncer_redirect_url');
    function custom_bouncer_redirect_url($default_url) {
    	return 'https://tnpscmaster.in/login/';
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Jarryd Long

    (@jarryd-long)

    Hi there, thank you for reaching out to Paid Memberships Pro.

    The PMPro login form makes use of the core WP login form function so if you can hook into the authenticate filter, and then check if they should be bounced or not, you might be able to throw an error from there.

    Here’s an example code recipe of how you can throw an error https://gist.github.com/andrewlimaza/e20de0718c29bf3fa6b28176c1f80a9c

    Plugin Support Jarryd Long

    (@jarryd-long)

    Because there have not been any recent updates to this topic, we will be changing the status to resolved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP Bouncer warning message’ is closed to new replies.