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



validate_theme_requirements › Filtr WordPress Hooks

Od6.9.0
Przestarzałyn/a
› apply_filters( 'validate_theme_requirements', true, $stylesheet )
Parametry: (2)
  • () met_requirements True if the theme meets requirements, WP_Error if not.
    Wymagane: Tak
  • () stylesheet Directory name for the theme.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the theme requirement validation response.

If a theme 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_theme_requirements', true, $stylesheet );