set_current_user
Fires after the current user is set.
Использование
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... }
Список изменений
С версии 2.0.1 | Введена. |
Где вызывается хук
set_current_user
wp-includes/pluggable.php 48
do_action( 'set_current_user' );
Где используется хук в WordPress
wp-includes/default-filters.php 565
add_action( 'set_current_user', 'kses_init' );
wp-includes/default-filters.php 624
add_action( 'set_current_user', '_wp_footnotes_kses_init' );