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



site_allowed_themes › WordPress过滤钩子

Since4.5.0
已弃用n/a
apply_filters( 'site_allowed_themes', $allowed_themes[ $blog_id ], $blog_id )
参数: (2)
  • (string[]) $allowed_themes An array of theme stylesheet names.
    Required: Yes
  • (int) $blog_id ID of the site. Defaults to current site.
    Required: Yes
定义在:
文档:

Filters the array of themes allowed on the site.





源码

return (array) apply_filters( 'site_allowed_themes', $allowed_themes[ $blog_id ], $blog_id );