current_theme_supports-{$feature}
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
apply_filters( "current_theme_supports-{$feature}", bool $supports, array $args, string $feature )
Описание
Динамическая часть имени хука, $feature, соответствует конкретной возможности темы. Список возможных значений см. в add_theme_support().
Оригинал (английский)
The dynamic portion of the hook name, $feature, refers to the specific theme feature. See add_theme_support() for the list of possible values.
Динамические части имени
{$feature}- Динамическая часть имени хука, $feature, соответствует конкретной возможности темы.
Фильтруемое значение
Параметры
$supports
bool
обязательный
$args
array
обязательный
$feature
string
обязательный
Исходный код
wp-includes/theme.php:3218
return apply_filters( "current_theme_supports-{$feature}", true, $args, $_wp_theme_features[ $feature ] ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
История изменений
| Версия | Описание |
|---|---|
| 3.4.0 | Introduced. |

