network_allowed_themes WordPress Filter Hook
This hook is called when a network is allowed to add/enable a theme. This hook is useful for plugin authors who need to know when a theme is added or enabled on a network.
apply_filters( 'network_allowed_themes', string[] $allowed_themes , int $blog_id ) #
Filters the array of themes allowed on the network.
Description
Site is provided as context so that a list of network allowed themes can be filtered further.
Parameters
- $allowed_themes
(string[])An array of theme stylesheet names.
- $blog_id
(int)ID of the site.
Source
Changelog
Version | Description |
---|---|
4.5.0 | Introduced. |