wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



validate_theme_requirements › Hooks de Filtros WordPress

Desde6.9.0
Obsoleton/a
› apply_filters( 'validate_theme_requirements', true, $stylesheet )
Parâmetros: (2)
  • () met_requirements True if the theme meets requirements, WP_Error if not.
    Required: Yes
  • () stylesheet Directory name for the theme.
    Required: Yes
Definido em:
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.




Fonte

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