Summery Summery

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

Syntax Syntax

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

Description 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.

Parameters Parameters


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


(string) PHP version checked.

Source Source

File: wp-admin/includes/misc.php


Changelog Changelog

Version Description
5.1.1 Introduced.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.