Redirect user after login with SMS
-
I want to redirect user to https://www.domain.com/author/<username>/screen after they log in with SMS
I tried to edit the code in includes/functions.php with the following code
$current_user = wp_get_current_user();
if ( is_user_logged_in() ) {
$redirect = (‘https://www.domain.com/author/’.$current_user->user_login.’/screen’); }but it does not work it redirects to “https://www.domain.com/author/screen” without the username part. can you help me with this
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Redirect user after login with SMS’ is closed to new replies.