I create user with wp_create_user,after succesfully creating a user I need to set his status to be logged in?How to set his status to be logged in ?
Leave a Reply
You must be logged in to post a comment.
I create user with wp_create_user,after succesfully creating a user I need to set his status to be logged in?How to set his status to be logged in ?
You must be logged in to post a comment.
Use
wp_signon()
. Ex:See Codex for more details about
wp_signon()
.