wpdb::load_col_info()
Loads the column metadata from the last query.
Method of the class: wpdb{}
No Hooks.
Return
null
. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->load_col_info();
Changelog
Since 3.5.0 | Introduced. |
wpdb::load_col_info() wpdb::load col info code WP 6.5.2
protected function load_col_info() { if ( $this->col_info ) { return; } $num_fields = mysqli_num_fields( $this->result ); for ( $i = 0; $i < $num_fields; $i++ ) { $this->col_info[ $i ] = mysqli_fetch_field( $this->result ); } }