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();
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 2.0.0 | Introduced. |