WordPress at a glance
function is not described

WP_Query::__call() public WP 4.0.0

Make private/protected methods readable for backward compatibility.

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

No Hooks.


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


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


Since 4.0.0 Introduced.

Code of WP_Query::__call() WP 5.5.2

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