WP_Query::__call()
Makes private/protected methods readable for backward compatibility.
Method of the class: WP_Query{}
No Hooks.
Return
Mixed|false
. Return value of the callback, false otherwise.
Usage
global $wp_query; $wp_query->__call( $name, $arguments );
- $name(string) (required)
- Method to call.
- $arguments(array) (required)
- Arguments to pass when calling.
Changelog
Since 4.0.0 | Introduced. |
WP_Query::__call() WP Query:: call code WP 6.6.1
public function __call( $name, $arguments ) { if ( in_array( $name, $this->compat_methods, true ) ) { return $this->$name( ...$arguments ); } return false; }