WordPress at Your Fingertips
function is not described

WP_User::__call() public WP 4.3.0

Makes private/protected methods readable for backward compatibility.

{} It's a method of the class: WP_User{}

No Hooks.


Mixed|false. Return value of the callback, false otherwise.


$WP_User = new WP_User();
$WP_User->__call( $name, $arguments );
$name(string) (required)
Method to call.
$arguments(array) (required)
Arguments to pass when calling.


Since 4.3.0 Introduced.

Code of WP_User::__call() WP 5.8.1

public function __call( $name, $arguments ) {
	if ( '_init_caps' === $name ) {
		return $this->_init_caps( ...$arguments );
	return false;