allowed_themes хук-фильтр . WP 3.0.0
Filters the array of themes allowed on the network.
Использование
add_filter( 'allowed_themes', 'filter_function_name_2173' ); function filter_function_name_2173( $allowed_themes ){ // filter... return $allowed_themes; }
- $allowed_themes(строка[])
- An array of theme stylesheet names.
Список изменений
С версии 3.0.0 | Введена. |
Где вызывается хук
allowed_themes
wp-includes/class-wp-theme.php 1481
$allowed_themes = apply_filters( 'allowed_themes', $allowed_themes );