Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Redirect user after login with SMS

$
0
0

Replies: 0

I want to redirect user to http://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 = (‘http://www.domain.com/author/’.$current_user->user_login.’/screen’); }

but it does not work it redirects to “http://www.domain.com/author/screen” without the username part. can you help me with this


Viewing all articles
Browse latest Browse all 59525

Trending Articles