allowed_themes WordPress Filter Hook
The allowed_themes filter hook is used to change the array of theme names allowed on the site. This can be useful for a number of reasons, such as preventing certain themes from being activated or only allowing certain themes to be activated.
apply_filters( 'allowed_themes', string[] $allowed_themes ) #
Filters the array of themes allowed on the network.
Parameters
- $allowed_themes
(string[])An array of theme stylesheet names.
Source
Changelog
Version | Description |
---|---|
MU (3.0.0) | Introduced. |