W3cubDocs

/WordPress

WP::init()

Set up the current user.

Source

public function init() {
	wp_get_current_user();
}

Changelog

Version Description
2.0.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp/init