apply_filters( ‘site_allowed_themes’, string[] $allowed_themes, int $blog_id )

In this article

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

return (array) apply_filters( 'site_allowed_themes', $allowed_themes[ $blog_id ], $blog_id );

Changelog

VersionDescription
4.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.