Check Wordpress Version in a mysql database
I'm a wordpress designer & developer and I want to know if if it's possible to check my wordpress version in tables of mysql database to print it in an administration panel page ?
Should be in wp_options table, the field is called db_version. So, yes, it's possible.
Make sure to consult the codex, as the db_version looks different from the wp version. for instance:
For Version 3.1, the database version (db_version in wp_options) changed to 17056, and the Trac revision was 17485.
Alternatively, you can find the file in the wordpress installation, inside the folder "wp-incudes". The file is called version.php and defines a global variable like so:
/** * The WordPress version string * * @global string $wp_version */ $wp_version = '3.7.1';