wpseek.com
WordPress开发者和主题制作者的搜索引擎



validate_theme_requirements › WordPress过滤钩子

Since6.9.0
已弃用n/a
› apply_filters( 'validate_theme_requirements', true, $stylesheet )
参数: (2)
  • () met_requirements True if the theme meets requirements, WP_Error if not.
    Required: Yes
  • () stylesheet Directory name for the theme.
    Required: Yes
定义在:
文档:

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.




源码

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