Tag Info

New answers tagged

0

You can use wp_get_current_user() This should do the trick: $current_user = wp_get_current_user(); if ( is_user_logged_in() ) { wp_redirect( 'http://www.domain.com/author/'.$current_user->user_login.'/achievements/'); exit; } else { echo 'You have no business being here'; } Also see the wp_get_current_user() documentation. If you run in ...


1

WordPress has several functions for getting user information, for example the following ones: get_currentuserinfo() get_userdata() wp_get_current_user()


0

If you have access to cpanel you can change your login through phpmyadmin - Here's an article on how to do it Also, if you're looking to prevent this situation from happening in the future, check out Clef. Its a 2 factor authentication system that lets you log in with your phone and feels like magic :) If you don't have access to cpanel, your hosting ...



Top 50 recent answers are included