wpdb::__get( string $name ): mixed

Makes private properties readable for backward compatibility.


Parameters

$name string Required
The private member to get, and optionally process.

Top ↑

Return

mixed The private member.


Top ↑

Source

File: wp-includes/wp-db.php. View all references

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

	return $this->$name;
}


Top ↑

Changelog

Changelog
Version Description
3.5.0 Introduced.

Top ↑

User Contributed Notes

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