set_current_user хук-событиеWP 2.0.1

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 Введена.

Где вызывается хук

wp_set_current_user()
set_current_user
wp-includes/pluggable.php 48
do_action( 'set_current_user' );

Где используется хук в WordPress

wp-includes/default-filters.php 561
add_action( 'set_current_user', 'kses_init' );
wp-includes/default-filters.php 621
add_action( 'set_current_user', '_wp_footnotes_kses_init' );