WP::init()publicWP 2.0.0

Set up the current user.

Метод класса: WP{}

Хуков нет.

Возвращает

null. Ничего (null).

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

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

Список изменений

С версии 2.0.0 Введена.

Код WP::init() WP 6.5.2

public function init() {
	wp_get_current_user();
}