WP::init()publicWP 2.0.0

Set up the current user.

Method of the class: WP{}

No Hooks.

Return

null. Nothing (null).

Usage

global $wp;
$wp->init();

Changelog

Since 2.0.0 Introduced.

WP::init() code WP 6.5.4

public function init() {
	wp_get_current_user();
}