If you can access the files from the server just include wp-includes/version.php
from each installation. That file is completely stand-alone, it just defines five variables:
/**
* The WordPress version string
*
* @global string $wp_version
*/
$wp_version = '3.5.1';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
*
* @global int $wp_db_version
*/
$wp_db_version = 22441;
/**
* Holds the TinyMCE version
*
* @global string $tinymce_version
*/
$tinymce_version = '358-23224';
/**
* Holds the required PHP version
*
* @global string $required_php_version
*/
$required_php_version = '5.2.4';
/**
* Holds the required MySQL version
*
* @global string $required_mysql_version
*/
$required_mysql_version = '5.0';
A simple version_compare()
will do the trick:
if ( '-1' == version_compare( $wp_version, '3.5.1' ) )
return 'outdated';
Related Posts:
- Registering Class methods as hook callbacks
- When does WordPress.org notify sites of new version?
- Get a button for in the Editor
- Disabling Comment Notifications for Post Author
- wordpress get meta value by meta key
- How to create gutenberg block using REST API independently or as headless way?
- How can i force Display names to be the same as Usernames?
- Updating WordPress – the best approach (updating wp core, plugins and db)
- Code markup plugin like the .wordpress.com blogs offer?
- Set active theme via URL
- WooCommerce Always Include Shipping Information in Checkout [closed]
- Bad Request (Invalid Hostname) on working server, database problem
- Plugin Not Working, But Only On GoDaddy Hosted site
- Long running action from plugin
- How to get the current plugin name?
- Plugin throws up 404 on front-end when when enqueuing style with filetime
- Errors while using ajax from external wordpress page
- List of plugin updates in admin bar
- Custom field in TWIG template – Advanced custom fields plugin
- Peer Review Plugin for Posts? [closed]
- Server side validation for Contact Form 7 [closed]
- Bulk Image Uploader to create new post from each image [closed]
- How can I implement a notification system in wordpress?
- Internationalization: Not loading plugin translated text
- Gravatar images are not fetched in Ultimate Member plugin
- Building an email signup form. Where should the information be saved in the DB?
- How do action and filter hooks understand where to look for the core function that we hooked our function to them
- Recreating a local repository from a currently existing wordpress.org repo..which I own
- Bootstrap Drop Down menu is not working
- Plugin Code ONLY on Post Edit Page
- qTranslate conflicts with SEO-plugins [closed]
- Multi language site [closed]
- Ajax fail and get 504 error
- Want to Show Sub categories under Categories section using Woo Commerce [closed]
- How to customize the grid layout in reactive pro wordpress plugin [closed]
- How to run subversion and staging environments when running WordPress
- Subdomains with almost the same content
- WordPress page and plugin list using sql query
- Xili language plugin not showing language flag [closed]
- using do_shortcode
- Is there any plugin which enables users to rate comments in thumbs up-down way?
- Plugin Repostitory Questions
- Free paypal cart solution [closed]
- Get site url and updates data, then use them
- How to integrate together a website currently hosted WordPress.com and a custom web application currently hosted on Azure?
- Problem with add_action
- How to update a local development plugin on a separate machine
- Error When Trying To Login [closed]
- unable to remove malware from wp website [closed]
- How do I convert my WordPress website to be domain agnostic?
- Get Image Having the ID [closed]
- Show media-uploads to all users
- How to create plugin auto create page wordpress?
- Scrape a webpage for image and add it to post
- Block wordpress style for my plugin admin page
- how can authors to define custom pages?
- Send a Notification to a WordPress Theme
- Adding CASE in WP_Query
- why I cannot activate elementor plug in?
- How to find the following specific WordPress variables?
- Need help creating asynchronous data scraper in WordPress
- Load extra post content from plugin, after load basic post content
- Trying to get property ‘ID’ of non-object in /wp-includes/class-wp-query.php on line 4044
- How to upload large media file in chunks, without any plugin?
- WordPress asks to update a plugin already updated
- Why do I need to reload the page for WordPress to see the new custom field added with jQuery
- How to store a secret for a plugin inside public_html
- Do images in plugins automatically load?
- How to use functions found inside pluggable.php with my plugin files
- Apply only the css in my style.css file
- WordPress:Custom banner from psd trying to cut out a button area so the website link can be clicable not working
- Global $wp_admin_bar always returns null
- Shortcode generated widget to appear on same line as heading text and button
- WooCommerce or any other plugin: Deliver JS and CSS through CDN without using a Plugin
- How to roll back WordPress version or prevent migration from forcing update?
- Show custom taxonomy in theme
- How to prevent encoding plugin HTML output to entities?
- How to differently style pages that display posts of different category in WordPress?
- WordPress FTP/media directory permissions problem?
- Social sharing plugin directing to blank page after post sharing
- accessibility of an object created in a plugin, from the header
- How to build a navigation menu for long-form texts like this one
- MobilePress plugin and WordPress 4.1 update
- Theme styling for plugins
- how to change/remove/hide menu under installed plugins
- Simple fields plugin WordPress show repeatable file field
- How to check my WordPress.org site MySQL queries generating items?
- No feedback when installing plugins or updating
- onclick open window [closed]
- how to make a plugin secure, so any one if changes something in plugin, it just disables it self and notify us on server? [closed]
- WooCommerce – Adding notice above products on Shop Home [closed]
- $wpdb selects wrong database
- Plugin update warning
- JQuery UI plugin not working in IE7?
- Possible to change meta data single quotes to dobule quotes in yoast wordpress seo? [closed]
- how to know that a wordpress plugin support using API?
- Activate plugin button do nothing [closed]
- How to code a wordpress page properly? Dashboard or unique Theme files or alternative?
- Tips on using a custom template with Ultimate Member
- How to make a Template page to show the information of different things Shop and Product page?