• Resolved nover2018

    (@nover2018)


    Hello, I have such question, where there is a redirection (not authorized user) from wp-admin to the page of TML authorization?
    I need that if the user enters the http: // sitename / wp-admin link in the address bar, then it should be redirected to wp-login.php
    help me please
    P.S. is my bad English

    • This topic was modified 8 years ago by nover2018.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    It sounds like you may want to stop TML from rewriting wp-login.php links – is this correct?

    Thread Starter nover2018

    (@nover2018)

    I need to remove the redirect from wp-admin to “/login/?redirect_to=http%3A%2F%2Fwordtest%2Fwp-admin%2F&reauth=1”
    How can i do this?

    Plugin Author Jeff Farthing

    (@jfarthing84)

    By stopping TML from rewriting wp-login.php links.

    Thread Starter nover2018

    (@nover2018)

    I’m new to your plugin, and I do not understand where to interrupt the redirection

    Plugin Author Jeff Farthing

    (@jfarthing84)

    So, you’ll just need to remove the filter that TML adds to the site_url hook:

    
    remove_filter( 'site_url', array( Theme_My_Login::get_object(), 'site_url' ) );
    
    Thread Starter nover2018

    (@nover2018)

    thanks for the help

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

The topic ‘redirect to wp-admin’ is closed to new replies.