WordPress как на ладони
wordpress jino
событие не описано

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

Fires after the current user is set.

Использование

add_action( 'set_current_user', 'action_function_name_5977' );
function action_function_name_5977(){
	// action...
}

Связи хука

Используется в: wp_set_current_user()

Кусок кода с хуком

Фрагмент из: wp-includes/pluggable.php WP 4.9
...
		&& ( $id == $current_user->ID )
		&& ( null !== $id )
	) {
		return $current_user;
	}

	$current_user = new WP_User( $id, $name );

	setup_userdata( $current_user->ID );

	/**
	 * Fires after the current user is set.
	 *
	 * @since 2.0.1
	 */
	do_action( 'set_current_user' );

	return $current_user;
}
endif;

if ( !function_exists('wp_get_current_user') ) :
/**
 * Retrieve the current user object.
 *
 * Will set the current user, if the current user is not set. The current user
 * will be set to the logged-in person. If no user is logged-in, then it will
 * set the current user to 0, which is invalid and won't have any permissions.
 *
 * @since 2.0.3
 *
...