Makes private/protected methods readable for backward compatibility.
Parameters
$namestringrequired- Method to call.
$argumentsarrayrequired- Arguments to pass when calling.
Source
public function __call( $name, $arguments ) {
if ( in_array( $name, $this->compat_methods, true ) ) {
return $this->$name( ...$arguments );
}
return false;
}
Changelog
| Version | Description |
|---|---|
| 4.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.