logging out and disabling default wp-login

This topic contains 2 replies, has 2 voices, and was last updated by  m forbes 6 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #74
    #75

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    try something like

    
    
    add_action('init','custom_login');
    function custom_login(){
     global $pagenow;
     if( 'wp-login.php' == $pagenow && !isset($_REQUEST['action']) ) {
      wp_redirect('http://yoursite.com/');
      exit();
     }
    }

    Stiofan

    #77

    m forbes
    Full Member
    Post count: 338

    Thank you!

Viewing 3 posts - 1 through 3 (of 3 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket