Call wp_set_current_user($id) to make a user ID the currently logged in user.
Trending Articles
More Pages to Explore .....
Call wp_set_current_user($id) to make a user ID the currently logged in user.