WordPress at a glance
function is not described

WP_Query::__call() WP 4.0.0

Make private/protected methods readable for backward compatibility.

This is a method of the class: WP_Query

No Hooks.


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


$WP_Query = new WP_Query();
$var = $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-includes/class-wp-query.php WP 5.3.2

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