<\/figure><\/div>\n\n\n\nHow to find the WordPress version of any site in the HTML source<\/h2>\n\n\n\n If you view the source of a WordPress website, you'll often see<\/p>\n\n\n\n
<meta name=\"generator\" content=\"WordPress 5.8.2\" \/><\/code><\/pre>\n\n\n\nwhere \"5.8.2\" is the WordPress version running on that site.<\/p>\n\n\n\n
You will find it between the <head><\/head><\/em> tags at the top of the website.<\/p>\n\n\n\n <\/figure><\/div>\n\n\n\nIf it's not there, they may have turned it off using:<\/p>\n\n\n\n
remove_action( 'wp_head', 'wp_generator' );<\/code><\/pre>\n\n\n\nHow to find the current WordPress version using PHP code<\/h2>\n\n\n\n The easiest way to find the current WordPress version using PHP code is with <\/p>\n\n\n\n
get_bloginfo( 'version' );<\/em><\/code><\/pre>\n\n\n\nYou can see it in action if you hook it into your content and echo it.<\/p>\n\n\n\n
<\/figure><\/div>\n\n\n\nIt will simply create a string with the version number.<\/p>\n\n\n\n
<\/figure><\/div>\n\n\n\nIt's important to use the lower case 'version', or you will get the title of the website. That's the default for get_bloginfo()<\/em>.<\/p>\n\n\n\nIf you want to go a layer deeper, all get_bloginfo( 'version' )<\/em> does is to output the global variable $wp_version<\/em>.<\/p>\n\n\n\nYou could also use:<\/p>\n\n\n\n
global $wp_version;\necho $wp_version;<\/code><\/pre>\n\n\n\nFinally, if you just want to dig in to the files and find the version number, it is stored in \/wp-includes\/version.php<\/em> under the variable $wp_version<\/em>. You're unlikely to find it as an entry in the database, unless another plugin has added it there.<\/p>\n\n\n\n <\/figure><\/div>\n\n\n\n<\/p>\n\n\n\n
<\/p>\n\n\n\n
<\/p>\n","protected":false},"excerpt":{"rendered":"
There are three ways you can find which WordPress version is running on your site: displayed in the WordPress admin area, in the HTML source, or by using PHP code. How to find your WordPress version in the admin area When you first log in to the WordPress admin area as an admin, you will<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"yoast_head":"\n
How To Find Your WordPress Version<\/title>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\t \n\t \n\t \n