• Resolved Jawad Zahid

    (@jawadzahid10)


    Hi,

    Is it possible to enable the plugin functionality on my custom login page and not the default wp-admin page? I am redirecting users to my custom login page and I want to show the plugin ‘Email verification link’ screen when user tries to login through my custom page.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Sully

    (@ss88_uk)

    Hi Jawad,

    Our plugin hooks into the WordPress login system. You can still build a custom login page and set the form to post to wp-login.php and this will allow it to work however, there’s currently no functionality to support completely custom logins i.e. you code your own login system via PHP and then hook back into our system. We currently only support Ultimate Member for that.

    I might add it on the todo list to integrate custom hooks to allow this functionality.

    Thanks,
    Sully

    Thread Starter Jawad Zahid

    (@jawadzahid10)

    Hi Sully, thanks for your prompt response. I am currently facing an issue which you might be able to help.

    In my website, there is a custom login page with /login slug (it works fine by logging me in). If I try to login through wp-admin or wp-login.php with your plugin activated, it redirects me to my custom login screen and doesn’t log me in or show your email verification screen.

    However, the login with login screen, wp-admin or wp-login.php works fine when your plugin is disabled.

    Can you give me a lead why this is happening?

    Plugin Author Sully

    (@ss88_uk)

    Hi Jawad,

    Without looking at the code it’s impossible for me to diagnose where the issue could lie.

    Thanks,
    Sully

    Thread Starter Jawad Zahid

    (@jawadzahid10)

    Hi Sully,

    Just for your information, I was using a custom redirect function after logging out.

    add_action(‘wp_logout’, array($this, ‘redirect_user_to_login_after_logout’));

        public function redirect_user_to_login_after_logout()

        {

            wp_redirect(home_url() . ‘/login’);

            die;

        }

    This was causing the redirection to my custom login page. Your plugin is working fine after removing this code.

    Please also add this thing in your to-do list to incorporate this behaviour.

    Plugin Author Sully

    (@ss88_uk)

    Thanks for keeping me updated Jawad!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Enable plugin on custom login page’ is closed to new replies.