WordPress at Your Fingertips
filter is not described

wp_is_php_version_acceptable filter-hook . WP 5.1.1

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.


add_filter( 'wp_is_php_version_acceptable', 'filter_function_name_8392', 10, 2 );
function filter_function_name_8392( $is_acceptable, $version ){
	// filter...

	return $is_acceptable;
Whether the PHP version is considered acceptable.
Default: true
PHP version checked.


Since 5.1.1 Introduced.

Where the hook is called

wp-admin/includes/misc.php 1498
$response['is_acceptable'] = (bool) apply_filters( 'wp_is_php_version_acceptable', true, $version );

Where in WP core the hook is used WordPress

Usage not found.