hitchhackerguide.com
wp_set_current_user
Changes the current user by ID or name.Set $id to null and specify a name if you do not know a user’s ID. 4103