wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



validate_plugin_requirements › Filtr WordPress Hooks

Od6.9.0
Przestarzałyn/a
› apply_filters( 'validate_plugin_requirements', true, $plugin )
Parametry: (2)
  • () met_requirements True if the plugin meets requirements, WP_Error if not.
    Wymagane: Tak
  • () plugin Path to the plugin file relative to the plugins directory.
    Wymagane: Tak
Zdefiniowane na:
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.




Źródło

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