wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



validate_theme_requirements › Les Filtres WordPress

Depuis6.9.0
Dépréciéen/a
› apply_filters( 'validate_theme_requirements', true, $stylesheet )
Paramètres: (2)
  • () met_requirements True if the theme meets requirements, WP_Error if not.
    Requis: Oui
  • () stylesheet Directory name for the theme.
    Requis: Oui
Défini(e) dans:
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 );