On this page
wpdb::__get( string $name ): mixed
Makes private properties readable for backward compatibility.
Parameters
$namestring Required-
The private member to get, and optionally process.
Return
mixed The private member.
Source
File: wp-includes/class-wpdb.php. View all references
public function __get( $name ) {
if ( 'col_info' === $name ) {
$this->load_col_info();
}
return $this->$name;
}
Related
Uses
| Uses | Description |
|---|---|
| wpdb::load_col_info() wp-includes/class-wpdb.php | Loads the column metadata from the last query. |
Changelog
| Version | Description |
|---|---|
| 3.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wpdb/__get