Add below function to your "functions.php" file
function changeadmin() {
$stng = '?securelogin';
$geturl = 'http://' . $_SERVER['SERVER_NAME'] . '/' . 'wp-login.php' . '?'. $_SERVER['QUERY_STRING'];
if ( site_url('/wp-login.php').$stng != $geturl ) {
header( 'Location: http://' . $_SERVER['SERVER_NAME'] . '/' );
}
add_action('login_head', 'changeadmin');
0 comments:
Post a Comment