wpdb::__get()publicWP 3.5.0

Makes private properties readable for backward compatibility.

Метод класса: 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.

Code of wpdb::__get() WP 6.1.1

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

	return $this->$name;
}