How to Check Which WordPress Version a Site Runs
Updated 23 Oct 2026 路 by the DetectWP team
WordPress prints its version number in more places than most site owners realise. Some of them are deliberate, such as the generator meta tag; others are side effects of how the software loads its own scripts. This guide walks through each location in order of convenience, explains what to do when the obvious ones have been removed, and then addresses the question people usually ask next: whether exposing the version is a problem. The short answer is that keeping WordPress updated matters far more than hiding the number.
If you only want the result, the DetectWP scanner reports the detected core version along with the theme, plugins and host. The steps below show where that number comes from.
Method 1: The generator meta tag
By default WordPress adds a line to the <head> of every page: <meta name='generator' content='WordPress 6.8.2' />. View the page source with Ctrl+U and search for generator. If the tag is present, you have the exact version and can stop here.
Many sites remove it with remove_action('wp_head', 'wp_generator'), and most security and SEO plugins offer a checkbox that does the same. You may also see generator tags from other software on the same page, for example from Elementor, WooCommerce or a theme, so check that the one you found says WordPress before you record the number.
Method 2: readme.html and license.txt
Every WordPress download ships with a readme.html file in the site root, and it is overwritten with the new copy on each core update. It is not linked from anywhere, but it is a static file, so simply open https://example.com/readme.html. Near the top of the page it displays the version, and the rest of the document is the standard installation and upgrade notes.
This is the most reliable method on sites that have not thought about it, and the first thing security-conscious owners block. If you get a 403 or 404, the file has been removed or access has been denied in the server configuration, which is a sensible precaution we recommend in our guide to hiding WordPress fingerprints. The companion file license.txt is also readable on many sites but does not contain the version, so it only confirms that the site is WordPress.
Method 3: ?ver= on core scripts and styles
When WordPress enqueues one of its own scripts or stylesheets without an explicit version, it appends its own version number as a query string for cache busting. These URLs live under /wp-includes/ rather than /wp-content/, which is how you tell core assets apart from theme and plugin assets. Search the page source for wp-includes and look at the ?ver= value.
The most common examples on a modern site:
/wp-includes/css/dist/block-library/style.min.css?ver=6.8.2, the block library stylesheet loaded on nearly every site that uses the block editor./wp-includes/js/wp-emoji-release.min.js?ver=6.8.2, referenced inside the inline emoji settings script near the top of the head.- Classic theme stylesheets enqueued without a version, which inherit the core version in the same way.
Be careful with bundled libraries. jQuery loads from /wp-includes/js/jquery/jquery.min.js?ver=3.7.1, and that number is jQuery's version, not WordPress's. Look for a version that starts with 6 and matches across several core files.
Caching and optimisation plugins can strip these query strings, and some sites filter them out deliberately. When that happens the URL still proves the site runs WordPress, just not which release.
Method 4: RSS and Atom feeds
WordPress feeds include a generator element that is separate from the HTML meta tag, and site owners who removed the head tag often forgot this one. Open https://example.com/feed/ and look for a line such as <generator>https://wordpress.org/?v=6.8.2</generator>. The Atom feed at /feed/atom/ carries the equivalent <generator uri='https://wordpress.org/' version='6.8.2'>. Comment feeds at /comments/feed/ include it as well.
Feeds are disabled on some sites, usually with a plugin, but on the majority of blogs and news sites they remain available and are the easiest fallback when the meta tag is gone.
Method 5: The REST API and other side channels
The REST API index at /wp-json/ confirms that a site is WordPress and reveals a great deal about its plugins, but it does not report the core version directly. It is still worth a look when the other methods fail: the set of namespaces and routes that exist changes between major releases, so a route such as /wp/v2/global-styles, /wp/v2/font-families or /wp-block-editor/v1 indicates a minimum version.
Two further side channels occasionally help. The login page at /wp-login.php loads core stylesheets with the same ?ver= behaviour described above and is rarely touched by front-end optimisation plugins. And the block markup itself is a rough indicator: block HTML comments such as <!-- wp:paragraph --> are removed when a page renders, but the rendered classes and features of core blocks evolve with each release, which is how experienced reviewers can estimate a version range when nothing explicit is left.
If none of these yield a number, you have reached the limit of external inspection. You can state that the site runs WordPress and estimate a range, but you should not report a precise version you did not actually see. DetectWP follows the same rule and marks the version as unknown rather than guessing; see the methodology page for how the signals are prioritised.
Why hiding the version matters little
It is tempting to treat the version number as sensitive, but the threat model does not support that. The overwhelming majority of WordPress compromises come through plugins and themes rather than core, and automated attackers do not check the core version before sending exploit requests. They send the request to every site on their list because the request costs nothing. Knowing you run 6.8.1 rather than 6.8.2 gives an attacker almost no advantage, and not knowing it does not slow them down.
What does matter is whether the version you run is current. WordPress has installed minor and security releases automatically by default since version 3.7, so most sites receive security fixes within hours of release without anyone logging in. Automatic updates for major releases can be switched on from the Updates screen, and you can enable automatic updates per plugin and per theme from their respective screens. The official WordPress documentation on automatic updates covers the available constants and filters if you need finer control.
So by all means remove the generator tag and block readme.html; it is tidy and takes five minutes. Then put the real effort into keeping core, plugins and themes updated, which is the measure that actually closes the door. If a site you manage shows an old version in any of the checks above, that is the finding to act on.
Frequently asked questions
Where is the WordPress version shown in the page source?
In the meta generator tag in the head, and in the ?ver= query string on core scripts and styles loaded from /wp-includes/. If both have been removed, try /readme.html and the RSS feed at /feed/.
Does /wp-json/ reveal the WordPress version?
Not directly. The REST index lists namespaces and routes, which can indicate a minimum version because routes are added over time, but it does not include a version number.
Is it dangerous to expose the WordPress version?
On its own, no. Attacks overwhelmingly target plugin and theme vulnerabilities and are launched without checking the version. Running an outdated version is the real risk, whether or not the number is visible.
Why does the ?ver= on jQuery say 3.7.1?
That is jQuery's own version, which WordPress bundles. Only core files enqueued without an explicit version carry the WordPress version, such as the block library stylesheet and the emoji script.
Related
Free tools: WordPress plugin detector 路 WordPress theme detector 路 WordPress hosting detector