Filter hook 'wp_is_php_version_acceptable'

in WP Core File wp-admin/includes/misc.php at line 1644

Description

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 wordpress.org Serve Happy API considers the PHP version acceptable, ensuring that this filter can only make this check stricter, but not loosen it.

Occurrences

Filename Line Number
wp-admin/includes/misc.php 1644

Parameters

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

PHP Doc

/**
		 * 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 wordpress.org Serve Happy API considers the PHP version acceptable, ensuring
		 * that this filter can only make this check stricter, but not loosen it.
		 *
		 * @since 5.1.1
		 *
		 * @param bool   $is_acceptable Whether the PHP version is considered acceptable. Default true.
		 * @param string $version       PHP version checked.
		 */