WP_Query::__call( string $name, array $arguments ): mixed|false

In this article

Makes private/protected methods readable for backward compatibility.

Parameters

$namestringrequired
Method to call.
$argumentsarrayrequired
Arguments to pass when calling.

Return

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

Source

public function __call( $name, $arguments ) {
	if ( in_array( $name, $this->compat_methods, true ) ) {
		return $this->$name( ...$arguments );
	}
	return false;
}

Changelog

VersionDescription
4.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.