site_allowed_themes

过滤钩子


apply_filters( 'site_allowed_themes', $allowed_themes[ $blog_id ], $blog_id )
参数
  • (string[])
    $allowed_themes
    An array of theme stylesheet names.
    Required:
  • (int)
    $blog_id
    ID of the site. Defaults to current site.
    Required:
定义位置
  • wp-includes/class-wp-theme.php
    , line 1629
引入
4.5.0
弃用

Filters the array of themes allowed on the site.

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