wpdb::db_version(): string|null In this article Table of ContentsReturn Source Related Changelog ↑ Back to top 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() ); } View all references View on Trac View on GitHub Related UsesDescriptionwpdb::db_server_info()wp-includes/class-wpdb.phpReturns the version of the MySQL server. Used byDescriptionWP_Automatic_Updater::should_update()wp-admin/includes/class-wp-automatic-updater.phpTests to see if we can and should update a specific item. dbDelta()wp-admin/includes/upgrade.phpModifies the database based on specified SQL statements. update_core()wp-admin/includes/update-core.phpUpgrades the core of WordPress. list_core_update()wp-admin/update-core.phpLists available core updates. wp_version_check()wp-includes/update.phpChecks WordPress version against the newest version. wpdb::check_database_version()wp-includes/class-wpdb.phpDetermines whether MySQL database is at least the required minimum version. wpdb::has_cap()wp-includes/class-wpdb.phpDetermines whether the database or WPDB supports a particular feature. Show 2 moreShow less Changelog VersionDescription2.7.0Introduced. User Contributed Notes You must log in before being able to contribute a note or feedback.
User Contributed Notes
You must log in before being able to contribute a note or feedback.