Filters the array of themes allowed on the site.
$allowed_themesstring[]$blog_idintwp-includes/class-wp-theme.php:1721WP_Theme::get_allowed_on_site()wp-includes/class-wp-theme.php:1774WP_Theme::get_allowed_on_site() * * @since 4.5.0 * * @param string[] $allowed_themes An array of theme stylesheet names. * @param int $blog_id ID of the site. Defaults to current site. */ return (array) apply_filters( 'site_allowed_themes', $allowed_themes[ $blog_id ], $blog_id ); } $current = get_current_blog_id() === $blog_id; if ( $current ) { $allowed_themes[ $blog_id ] = get_option( 'allowedthemes' );Introduced in 4.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.