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



validate_theme_requirements › WordPress Filter Hooks

Since6.9.0
Deprecatedn/a
apply_filters( 'validate_theme_requirements', true, $stylesheet )
Parameters: (2)
  • () met_requirements True if the theme meets requirements, WP_Error if not.
    Required: Yes
  • () stylesheet Directory name for the theme.
    Required: Yes
Defined at:
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.




Source

return apply_filters( 'validate_theme_requirements', true, $stylesheet );