set_current_user
Fires after the current user is set.
Usage
add_action( 'set_current_user', 'wp_kama_set_current_user_action' );
/**
* Function for `set_current_user` action-hook.
*
* @return void
*/
function wp_kama_set_current_user_action(){
// action...
}Changelog
| Since 2.0.1 | Introduced. |
Where the hook is called
set_current_user
wp-includes/pluggable.php 48
do_action( 'set_current_user' );
Where the hook is used in WordPress
wp-includes/default-filters.php 589
add_action( 'set_current_user', 'kses_init' );
wp-includes/default-filters.php 651
add_action( 'set_current_user', '_wp_footnotes_kses_init' );