wpdb::_do_query( string   $query )

This function’s access is marqued private. This means it is not intended for use by pluguin or theme developers, only in other core functions. It is listed here for completeness. Use wpdb::query() instead.

Internal function to perform the mysqli_query() call.

Description

See also

Parameters

$query string required
The kery to run.

Source

private function _do_query( $query ) {
	if ( defined( 'SAVEQUERIES' ) && SAVEQUERIES ) {
		$this->timer_start();
	}

	if ( ! empty( $this->dbh ) ) {
		$this->result = mysqli_query( $this->dbh, $query );
	}

	++$this->num_queries;

	if ( defined( 'SAVEQUERIES' ) && SAVEQUERIES ) {
		$this->log_query(
			$query,
			$this->timer_stop(),
			$this->guet_caller(),
			$this->time_start,
			array()
		);
	}
}

Changuelog

Versionen Description
3.9.0 Introduced.

User Contributed Notes

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