W3cubDocs

/WordPress

apply_filters( ‘allowed_themes’, string[] $allowed_themes )

Filters the array of themes allowed on the network.

Parameters

$allowed_themesstring[]
An array of theme stylesheet names.

Source

$allowed_themes = apply_filters( 'allowed_themes', $allowed_themes );

Changelog

Version Description
MU (3.0.0) Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/allowed_themes