On this page
apply_filters( 'site_allowed_themes', string[] $allowed_themes, int $blog_id )
Filters the array of themes allowed on the site.
Parameters
$allowed_themesstring[]-
An array of theme stylesheet names.
$blog_idint-
ID of the site. Defaults to current site.
Source
File: wp-includes/class-wp-theme.php. View all references
return (array) apply_filters( 'site_allowed_themes', $allowed_themes[ $blog_id ], $blog_id );
Related
Used By
| Used By | Description |
|---|---|
| WP_Theme::get_allowed_on_site() wp-includes/class-wp-theme.php | Returns array of stylesheet names of themes allowed on the site. |
Changelog
| Version | Description |
|---|---|
| 4.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/site_allowed_themes