allowed_themes хук-фильтрWP 3.0.0

Filters the array of themes allowed on the network.

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

add_filter( 'allowed_themes', 'wp_kama_allowed_themes_filter' );

/**
 * Function for `allowed_themes` filter-hook.
 * 
 * @param string[] $allowed_themes An array of theme stylesheet names.
 *
 * @return string[]
 */
function wp_kama_allowed_themes_filter( $allowed_themes ){

	// filter...
	return $allowed_themes;
}
$allowed_themes(string[])
An array of theme stylesheet names.

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

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

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

WP_Theme::get_allowed_on_network()
allowed_themes
wp-includes/class-wp-theme.php 1685
$allowed_themes = apply_filters( 'allowed_themes', $allowed_themes );

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

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