On this page
WP::init()
Set up the current user.
Source
File: wp-includes/class-wp.php. View all references
public function init() {
wp_get_current_user();
}
Related
Uses
| Uses | Description |
|---|---|
| wp_get_current_user() wp-includes/pluggable.php | Retrieves the current user object. |
Used By
| Used By | Description |
|---|---|
| WP::main() wp-includes/class-wp.php | Sets up all of the variables required by the WordPress environment. |
Changelog
| Version | Description |
|---|---|
| 2.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp/init