wpdb::db_version(): string|null

In this article

Retrieves the database server version.

Return

string|null Version number on success, null on failure.

Source

public function db_version() {
	return preg_replace( '/[^0-9.].*/', '', $this->db_server_info() );
}

Changelog

VersionDescription
2.7.0Introduced.

User Contributed Notes

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