I have just taken over someone's hosted WordPress site. How do I find out what version he is running?
16 Answers
Look in wp-includes/version.php
/**
* The WordPress version string
*
* @global string $wp_version
*/
$wp_version = '2.8.4';
Unless he edited some code to delete this, you should be able to view source on the site and look for this meta tag:
<meta name="generator" content="WordPress 2.7.1" />
That will give you the version.
-
Excellent tip that allows for quickly checking without looking up credentials for any one of 100 client accounts and log in to the FTP! An even quicker way is to "Click the W logo" as per the below answer - again, if you have credentials at the ready ;) Oct 29, 2014 at 14:36
-
Did this change? My WordPress site does not have a meta name="generator" tag in the source. Jun 2, 2015 at 22:14
-
1The meta tag can be removed by a theme or plugin so that the version of WordPress is hidden, so that it can't be targeted with malicious intent by those seeking out older/unstable verisons. The other methods listed here could still work.– MichelleJun 9, 2015 at 16:12
-
I'm getting the less than helpful
<meta name="generator" content="WordPress.com" />
Guess maybe this doesn't work for sites living on wordpress.com?– ruffinJun 25, 2018 at 14:40
On the Admin Panel Dashboard, you can find a box called "Right Now". There you can see the version of the WordPress installation. I have seen this result in WordPress 3.2.1
. You can also see this in version 3.7.1
UPDATE:
In WP Version 3.8.3
In WP Version 3.9.1 Admin Side, You can see the version by clicking the WP logo which is located at the left-top position.
You can use yoursitename/readme.html
In the WordPress Admin Footer at the Right side, you will see the version info(Version 3.9.1).
You can get the WordPress version using the following code:
<?php bloginfo('version'); ?>
The below file is having all version details
wp-includes/version.php
Update for WP 4.1.5
In WP 4.1.5, If it was the latest WP version in the footer right part, it will show the version as it is. If not, it will show the latest WP version with the link to update.
Check the below screenshot.
-
8yoursitename/readme.html also help you to find the Site's wordpress version Nov 23, 2013 at 6:44
-
3I think this is THE answer, assuming you have the login/pass. IMHO. I just deleted readme.html (no offense Matt, LOL) Dec 15, 2013 at 4:22
-
This will only be visible as long as no update for WordPress is available. Apr 3, 2014 at 8:15
-
-
That this answer is only working as long as no update for the WordPress instance is available. When WordPress detects an available update it replaces all version displays with a "There is an update available" message. Apr 12, 2014 at 18:37
For any wordpress site, you can go to http://example.com/feed and check the following tag in the xml file to see the version number:
<generator>http://wordpress.org/?v=3.7</generator>
Here, 3.7 is the version installed.
-
This works even if there is no generator tag in HTML output. May be it is specific to the website I'm interested in, but works for my scenario anyways.– EjazJun 8, 2016 at 16:55
If you came here to find out about how to check WordPress version programmatically, then you can do it with the following code.
// Get the WP Version global.
global $wp_version;
// Now use $wp_version which will return a string value.
echo '<pre>' . var_dump( $wp_version ) . '</pre>';
// Output: string '4.6.1' (length=5)
Cheers!
-
Perfect answer +1, updated: @Ahmad awais it's you. oh this world is too small :-p Mar 3, 2017 at 8:11
Every WP install has a readme.html file.
So just type www.yourdomain.com/readme.html
-
4False. Not every install. I don't remember this in older versions. Also revealing WordPress version to the world is a security threat. Everyone should delete readme.html, IMO. Dec 15, 2013 at 4:23
-
Comment above by @PJ-Brunet BRINGS UP 2 GOOD POINTS, BUT, for both accuracy & respect, its CLAIMS NEED TO BE TONED DOWN, as should have been done from the start. Notably, via this & my next 3 comments, 3 CORRECTIONS: 1st, beginning ‘False.’ (so suggesting overall false) is misleading indeed to reverse, as the answer approach (by @user1939291) DOES work (often) + outside-useful + 1st I heard of it (so I give answer +1) so rather the comment should begin say ‘Yes this works (well at least OFTEN) so a method worth adding, BUT it might appear/be a problem and/so cases where it doesn't work.’. ... Nov 7, 2016 at 18:59
-
2nd, if the method actually doesn't always work, tell where ideally exactly; moreover saying merely ‘I don't remember this in older versions.’ is obviously NOT solid proof for saying strong claim ‘Not every install.’ ...though certainly the method won't work if the file has been deleted as the commenter (IMHO mistakenly) suggests users doing, indeed suggest ‘Everyone’ do, so on that most serious point, 3rd, ‘revealing WordPress version to the world is a security threat.’ is too strong a claim including misleading as a way to get good security, ...as 4 corrections, of increasing importance: ... Nov 7, 2016 at 19:19
-
...(a) that's a serious security threat in ONLY {notably limited case: of where (versions very unpredictable (false) +) attacker knows security holes in version + uses ver to significantly-better pick exploit, but I suspect most attacks automated so already try all/many exploits regardless of ver}, moreover (b) using (the short & very predictable) version # as a combo # is hardly a protective combo #(!), moreover (c) such hiding (of this or of the particular CMS in general) {security-thru-obscurity so considered weak en.wikipedia.org/wiki/Security_through_obscurity#Criticism }, ... Nov 7, 2016 at 19:29
-
...moreover (d) {outside world able to determine what CMS a site is running} is, to its owner, almost always at worst a minor if any loss (could be gain) but, to the world, extremely valuable, especially to other developers, to show what works & how things done including what WP can do; SO rather I suggest people DON'T DELETE THIS OR OTHER OFFICIAL FILES (unless official or extreme exceptions); instead for security use {the official methods: esp keeping WP up-to-date & backed-up} which has been enough for all I've seen, but if still not enough, then add WP malware scanner(s) & stopper(s). Nov 7, 2016 at 19:39
The easiest way would be to use the readme.html
file that comes with every WordPress installation (unless you deleted it).
http://example.com/readme.html
Note: it looks like the readme.html
file no longer outputs the current WordPress version. So, there is no way, for now, to see the current WordPress version without logging into the dashboard.
On the Admin panel in the footer you should see the words "Wordpress x.x" where x.x is your version number :)
Alternatively you can echo out the WP_VERSION constant in your script, it's up to you. The former is a lot quicker and easier.
-
3
-
2There is no WP_VERSION constant in newer versions of WordPress. Use the global
$wp_version
orget_bloginfo('version')
(which will actually echo the global $wp_version...)– EwoutDec 29, 2014 at 12:18
From Dashboard At a Glance
box
or at the bottom right corner of any admin page.
If that Glance box is hidden - click on screen options
at top-right corner and check At a Glance
option.
Because I can not comment to @Michelle 's answer, I post my trick here.
Instead of checking the version on meta tag that usually is removed by a customized theme.
Check the rss feed
by append /feed
to almost any link from that site, then search for some keywords (wordpress
, generator
), you will have a better chance.
<lastBuildDate>Fri, 29 May 2015 10:08:40 +0000</lastBuildDate>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>http://wordpress.org/?v=4.2.2</generator>
Open the blog, Check source once the blog is open. It should have a meta tag like:
<meta name="generator" content="WordPress 2.8.4" />
-
1
-
Both are the same answer, yours appears to be a bit after, some people may believe you just copied it. (while I'm sure you just was a bit slower to answer ;)). I gave you a +1 for the good answer too though :)– Cyril N.Mar 18, 2013 at 10:17
Yet another way to find the WordPress version is using WP-CLI: Command line interface for WordPress:
wp core version
From experience with WordPress 3.8.3:
(1) Login as admin (2) Click on the W menu in the upper left corner (3) Click on menu item "About WordPress".
This will take you to .../wp-admin/about.php
There it will say "Welcome to WordPress 3.8.3"
I know I'm super late regarding this topic but there's this easy to use library where you can easily get the version numbers of Worpress, PHP, Apache, and MySQL, all-in-one.
It is called the Wordpress Environment (W18T) library
<?php
include_once 'W18T.class.php';
$environment = new W18T();
echo $environment;
?>
Output
{
"platform": {
"name": "WordPress",
"version": "4.9.1"
},
"interpreter": {
"name": "PHP",
"version": "7.2.0"
},
"web_server": {
"name": "Apache",
"version": "2.4.16"
},
"database_server": {
"name": "MySQL",
"version": "5.7.20"
},
"operating_system": {
"name": "Darwin",
"version": "17.0.0"
}
}
I hope it helps.