WP::init() WordPress Method

The WP::init() method is used to initialize the WordPress environment. This method is called by the wp-load.php file.

WP::init() #

Set up the current user.


Source

File: wp-includes/class-wp.php

	public function init() {
		wp_get_current_user();
	}


Top ↑

Changelog

Changelog
VersionDescription
2.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.