how find wordpress version code example

Example 1: find wordpress version in database

/* Make sure to consult the codex, as the db_version looks different from the wp version. */
/* https://codex.wordpress.org/WordPress_Versions */
SELECT * FROM `wp_options` where option_name = 'db_version'

Example 2: check wordpress version from file

Instead, search for “?ver=” and look under the “link rel=’stylesheet’” 
sections. You should see a line ending with “?ver=x.x.x”. The numbers are the 
WordPress version.

Example 3: How do I ge the version of wordpress?

echo bloginfo('version');

Tags:

Misc Example