wpdb::load_col_info()

In this article

Loads the column metadata from the last query.

Source

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 );
	}
}

Changelog

VersionDescription
3.5.0Introduced.

User Contributed Notes

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