Filter hook 'network_allowed_themes'

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

Description

Filters the array of themes allowed on the network. Site is provided as context so that a list of network allowed themes can be filtered further.

Occurrences

Filename Line Number
wp-includes/class-wp-theme.php 1666

Parameters

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

PHP Doc

/**
		 * Filters the array of themes allowed on the network.
		 *
		 * Site is provided as context so that a list of network allowed themes can
		 * be filtered further.
		 *
		 * @since 4.5.0
		 *
		 * @param string[] $allowed_themes An array of theme stylesheet names.
		 * @param int      $blog_id        ID of the site.
		 */