Filter hook 'site_allowed_themes'

in WP Core File wp-includes/class-wp-theme.php at line 1719

Description

Filters the array of themes allowed on the site.

Occurrences

Filename Line Number
wp-includes/class-wp-theme.php 1719
wp-includes/class-wp-theme.php 1772

Parameters

Type Name Description
string[] $allowed_themes An array of theme stylesheet names.
int $blog_id ID of the site. Defaults to current site.

PHP Doc

/**
			 * Filters the array of themes allowed on the 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.
			 */