wip
This commit is contained in:
@@ -1253,7 +1253,20 @@ function validate_plugin_requirements( $plugin ) {
|
||||
);
|
||||
}
|
||||
|
||||
return true;
|
||||
/**
|
||||
* Filters the plugin requirement validation response.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @since 6.9.0
|
||||
*
|
||||
* @param bool|WP_Error $met_requirements True if the plugin meets requirements, WP_Error if not.
|
||||
* @param string $plugin Path to the plugin file relative to the plugins directory.
|
||||
*/
|
||||
return apply_filters( 'validate_plugin_requirements', true, $plugin );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user