site_allowed_themes WordPress Filter Hook
The site_allowed_themes filter hook allows you to add or remove themes from the allowed themes list. This can be useful if you want to prevent a certain theme from being used on your site.
apply_filters( 'site_allowed_themes', string[] $allowed_themes , int $blog_id ) #
Filters the array of themes allowed on the site.
Parameters
- $allowed_themes
(string[])An array of theme stylesheet names.
- $blog_id
(int)ID of the site. Defaults to current site.
Source
Changelog
Version | Description |
---|---|
4.5.0 | Introduced. |