WP_User::__call()publicWP 4.3.0

Makes private/protected methods readable for backward compatibility.

Method of the class: WP_User{}

No Hooks.

Return

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

Usage

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

Changelog

Since 4.3.0 Introduced.

WP_User::__call() code WP 6.5.2

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