wphooks.info - set_current_user

set_current_user

(trunk - 5.0-alpha-42719)

The hook occurs in the following file:

wp-includes/pluggable.php:
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
		$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.
	 *