Used By
Used By | Description |
---|---|
wp-includes/wp-db.php: wpdb::get_col_info() | Retrieves column metadata from the last query. |
wp-includes/wp-db.php: wpdb::__get() | Makes private properties readable for backward compatibility. |
Loads the column metadata from the last query.
File: wp-includes/wp-db.php
protected function load_col_info() { if ( $this->col_info ) { return; } if ( $this->use_mysqli ) { $num_fields = mysqli_num_fields( $this->result ); for ( $i = 0; $i < $num_fields; $i++ ) { $this->col_info[ $i ] = mysqli_fetch_field( $this->result ); } } else { $num_fields = mysql_num_fields( $this->result ); for ( $i = 0; $i < $num_fields; $i++ ) { $this->col_info[ $i ] = mysql_fetch_field( $this->result, $i ); } } }
Version | Description |
---|---|
3.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wpdb/load_col_info