set_current_user Wordpress function


Description:

Changes the current user by ID or name.


Syntax:


Arguments:

(int|null) $id User ID.
(string) $name Optional. The user's username


Return Type:

(object) returns wp_set_current_user()


Define At:

wp-includes/pluggable-deprecated.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/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 ×