wp_is_php_version_acceptable WordPress Filter Hook

This hook is used to determine whether the current version of PHP is acceptable. If it is not acceptable, the user will be prompted to upgrade.

apply_filters( 'wp_is_php_version_acceptable', bool $is_acceptable, string $version ) #

Filters whether the active PHP version is considered acceptable by WordPress.


Description

Returning false will trigger a PHP version warning to show up in the admin dashboard to administrators.

This filter is only run if the wordpress.org Serve Happy API considers the PHP version acceptable, ensuring that this filter can only make this check stricter, but not loosen it.


Top ↑

Parameters

$is_acceptable

(bool)Whether the PHP version is considered acceptable. Default true.

$version

(string)PHP version checked.


Top ↑

Source

File: wp-admin/includes/misc.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.1.1Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.