WordPress at a glance
filter is not described

network_allowed_themes filter-hook . WP 4.5.0

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.


add_filter( 'network_allowed_themes', 'filter_function_name_4318', 10, 2 );
function filter_function_name_4318( $allowed_themes, $blog_id ){
	// filter...

	return $allowed_themes;
An array of theme stylesheet names.
ID of the site.

Список изменений

С версии 4.5.0 Введена.

Где вызывается хук

wp-includes/class-wp-theme.php 1456
$network = (array) apply_filters( 'network_allowed_themes', self::get_allowed_on_network(), $blog_id );

Где используется хук в ядре WP

Использование не найдено.