wpdb::__get( string $name )

Makes private properties readable for backward compatibility.


Description Description


Parameters Parameters

$name

(string) (Required) The private member to get, and optionally process


Top ↑

Return Return

(mixed) The private member


Top ↑

Source Source

File: wp-includes/wp-db.php

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

		return $this->$name;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.5.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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