Redirect wp-admin url

Paste this code in wp-login.php

if($_GET['newurl']!="yes" && $_POST['s_val']!="login" && $_GET['action']==''  && $_GET['ywsl_social']=='')
{
    wp_redirect(site_url());
exit();
}

Now go to your admin URL type
Http://siteurl/wp-login.php?newurl=yes

Share on Google Plus

About Amit

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment