WP_Query::__get( string $name ): mixed

In this article

Makes private properties readable for backward compatibility.

Parameters

$namestringrequired
Property to get.

Return

mixed Property.

Source

public function __get( $name ) {
	if ( in_array( $name, $this->compat_fields, true ) ) {
		return $this->$name;
	}
}

Changelog

VersionDescription
4.0.0Introduced.

User Contributed Notes

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