wpdb::db_server_info()publicWP 5.5.0

Retrieves full database server information.

Метод класса: wpdb{}

No Hooks.

Return

String|false. Server info on success, false on failure.

Usage

global $wpdb;
$wpdb->db_server_info();

Changelog

Since 5.5.0 Introduced.

Code of wpdb::db_server_info() WP 6.1.1

public function db_server_info() {
	if ( $this->use_mysqli ) {
		$server_info = mysqli_get_server_info( $this->dbh );
	} else {
		$server_info = mysql_get_server_info( $this->dbh );
	}

	return $server_info;
}