Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




set_current_user [ WordPress Function ]

set_current_user ( $id, $name = '' )
Parameters:
  • (int|null) $id User ID.
  • (string) $name Optional. The user's username
See:
Returns:
Defined at:



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.

Source


<?php
function set_current_user($id$name '') {
    
_deprecated_function__FUNCTION__'3.0''wp_set_current_user()' );
    return 
wp_set_current_user($id$name);
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics