wpdb::__get()publicWP 3.5.0

Makes private properties readable for backward compatibility.

Method of the class: wpdb{}

No Hooks.

Return

Mixed. The private member.

Usage

global $wpdb;
$wpdb->__get( $name );
$name(string) (required)
The private member to get, and optionally process.

Changelog

Since 3.5.0 Introduced.

wpdb::__get() code WP 6.5.2

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

	return $this->$name;
}