wpdb::__get( string $name ): mixed

In this article

Makes private properties readable for backward compatibility.

Parameters

$namestringrequired
The private member to get, and optionally process.

Return

mixed The private member.

Source

public function __get( $name ) {
	if ( 'col_info' === $name ) {
		$this->load_col_info();
	}

	return $this->$name;
}

Changelog

VersionDescription
3.5.0Introduced.

User Contributed Notes

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