Filters the plugin requirement validation response.
Description
If a plugin fails due to a Core-provided validation (incompatible WP, PHP versions), this filter will not fire. A WP_Error response will already be returned. This filter is intended to add additional validation steps by site administrators.
Parameters
$met_requirementsbool|WP_Error
True if the plugin meets requirements, WP_Error if not.
$pluginstring
Path to the plugin file relative to the plugins directory.
1263*1264* @since 6.9.01265*1266* @param bool|WP_Error$met_requirementsTrueif the plugin meets requirements, WP_Error if not.1267* @param string$plugin Path to the plugin file relative to the plugins directory.1268*/1269returnapply_filters('validate_plugin_requirements',true,$plugin);1270}12711272/**1273* Determines whether the plugin can be uninstalled.1274*1275* @since 2.7.0
History
Introduced in 6.9.0. Unchanged from 6.9.7 through 7.1.0.