Title: Disabling the PHP Version Check
Last modified: November 24, 2021

---

# Disabling the PHP Version Check

 *  [funcoder88](https://wordpress.org/support/users/funcoder88/)
 * (@funcoder88)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/disabling-the-php-version-check/)
 * How is it possible to disable the PHP Version check for a Plugin globally? I 
   need this temporary to update a plugin to the last functional PHP 5.6 version,
   which I can’t do anymore since the current version don’t allow any updates, even
   no older versions. Changing and downgrading the “Requires PHP:” entry inside 
   the “readme.txt” of the plugin should normally work but unfortunately the plugin
   is too big for uploading on the server and I can’t raise the PHP Upload size 
   more than 16 MB from my hosting panel. So I get the error message “The link you
   followed has expired”. I also try to upload a php.ini file with the values and
   edit the .htaccess with every suggestions from this website which results in 
   an “Internal Server Error”.
 * [https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-link-you-followed-has-expired-error-in-wordpress/](https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-link-you-followed-has-expired-error-in-wordpress/)
 * So my last hope it to disable the PHP Version check from WordPress installation
   to update the plugin directly from admin panel without any PHP warnings but how
   can I do this and which files do I have to edit?
    -  This topic was modified 4 years, 4 months ago by [funcoder88](https://wordpress.org/support/users/funcoder88/).

Viewing 1 replies (of 1 total)

 *  [Alan Fuller](https://wordpress.org/support/users/alanfuller/)
 * (@alanfuller)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/disabling-the-php-version-check/#post-15101020)
 * I looked at wp code and there are no filters and it is a core function, but it
   is easy to temporarily hack.
 * File
 * `wp-includes/functions.php`
 * change around line 8026
 *     ```
       function is_php_version_compatible( $required ) {
       	return empty( $required ) || version_compare( phpversion(), $required, '>=' );
       }
       ```
   
 * to
 *     ```
       function is_php_version_compatible( $required ) {
       	return true;
       }
       ```
   
 * Of course this is a temporary hack, will be overwritten by a new update and your
   security software may well detect core file changes.
 * Do on a test system first – or make sure you have a working back up just in case.
 * Just as an aside – `Changing and downgrading the “Requires PHP:” entry inside
   the “readme.txt” of the plugin`
 * The check is actually done against the plugin main php file header not the readme.
   txt – I know lots of devs put it in the readme.txt but that is not actually the
   right place

Viewing 1 replies (of 1 total)

The topic ‘Disabling the PHP Version Check’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Alan Fuller](https://wordpress.org/support/users/alanfuller/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/disabling-the-php-version-check/#post-15101020)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
