WP_Roles::__call()publicWP 4.0.0

Makes private/protected methods readable for backward compatibility.

Method of the class: WP_Roles{}

No Hooks.

Return

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

Usage

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

Changelog

Since 4.0.0 Introduced.

WP_Roles::__call() code WP 6.1.1

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