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

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


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

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

Top ↑


$is_acceptable bool
Whether the PHP version is considered acceptable. Default true.
$version string
PHP version checked.

Top ↑


File: wp-admin/includes/misc.php. View all references

$response['is_acceptable'] = (bool) apply_filters( 'wp_is_php_version_acceptable', true, $version );

Top ↑


Version Description
5.1.1 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.