W3cubDocs

/WordPress

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_themesstring[]
An array of theme stylesheet names.
$blog_idint
ID of the site.

Source

$network = (array) apply_filters( 'network_allowed_themes', self::get_allowed_on_network(), $blog_id );

Changelog

Version Description
4.5.0 Introduced.

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