W3cubDocs

/WordPress

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

File: wp-includes/class-wp-theme.php

View on Trac

Changelog

Version Description
4.5.0 Introduced.

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