wpseek.com
A WordPress-centric search engine for devs and theme authors



validate_plugin_requirements › WordPress Filter Hooks

Since6.9.0
Deprecatedn/a
apply_filters( 'validate_plugin_requirements', true, $plugin )
Parameters: (2)
  • (bool|WP_Error) $met_requirements True if the plugin meets requirements, WP_Error if not.
    Required: Yes
  • (string) $plugin Path to the plugin file relative to the plugins directory.
    Required: Yes
Defined at:
Codex:

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.





Source

return apply_filters( 'validate_plugin_requirements', true, $plugin );