wpdb::__get() WordPress Method
The wpdb::__get() method is used to get a value from the database. This can be useful if you need to retrieve a value that is not directly accessible through the wpdb class.
wpdb::__get( string $name ) #
Makes private properties readable for backward compatibility.
Parameters
- $name
(string)(Required)The private member to get, and optionally process.
Return
(mixed) The private member.
Source
File: wp-includes/wp-db.php
public function __get( $name ) { if ( 'col_info' === $name ) { $this->load_col_info(); } return $this->$name; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.5.0 | Introduced. |