WP_Query::__get() – Make private properties readable for backward compatibility.
You appear to be a bot. Output may be restricted
Description
Make private properties readable for backward compatibility.
Usage
$mixed = WP_Query::__get( $name );
Parameters
- $name
- ( string ) required – Property to get.
Returns
mixed Property.
Source
File name: wordpress/wp-includes/class-wp-query.php
Lines:
1 to 5 of 5
public function __get( $name ) { if ( in_array( $name, $this->compat_fields, true ) ) { return $this->$name; } }