Theme my Login deleted but now wp-login.php and / wp-admin.php dont work
-
Hey ??
Im deleted the Plugin my theme Login and now the /wp-login/ and /wp-admin/ doesn’t work. There are no fields to login?
Only: Stay signed in? Nothing More. I cant do anything.
When im trying to open wp-admin.php it goes to https://www.xxxx.de/wp-login.php?redirect_to=http%3A%2F%2Fwww.xxx.de%2Fwp-admin%2F&reauth=1 and there are no fields to log in.
function my_login_redirect( $redirect_to, $request, $user ) { //is there a user to check? global $user; if ( isset( $user->roles ) && is_array( $user->roles ) ) { //check for admins if ( in_array( 'administrator', $user->roles ) ) { // redirect them to the default place return $redirect_to; } else { return home_url(); } } else { return $redirect_to; } }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Theme my Login deleted but now wp-login.php and / wp-admin.php dont work’ is closed to new replies.