WordPress and buddypress programming

redirect away from wp-admin

Viewing 1 reply thread
  • Author
    Posts
    • #1518
      michael mc
      Keymaster
      @michael
      add_action('init','custom_login');
      function custom_login(){
       global $pagenow;
       if( 'wp-login.php' == $pagenow ) {
        wp_redirect('https:/some url');
        exit();
       }
      }
      
    • #1519
      michael mc
      Keymaster
      @michael

      #wordpress #buddypress #code
      this don’t work it redirects you back to login after you try to login

Viewing 1 reply thread
  • You must be logged in to reply to this topic.