wp_set_current_user Wordpress function


Description:

Changes the current user by ID or name.


Syntax:


Arguments:

(int) $id User ID
(string) $name User's username


Return Type:

(WP_User) Current user User object


Define At:

wp-includes/pluggable.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/wp_set_current_user


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×