get_stylesheet()
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
get_stylesheet(): string
Описание
Имя темы, которая в данный момент установлена как тема публичной части сайта.
В большинстве случаев имя шаблона и имя таблицы стилей будут одинаковыми.
Оригинал (английский)
The theme name that is currently set as the front end theme.
For all intents and purposes, the template name and the stylesheet name are going to be the same for most cases.
Возвращаемое значение
string
Исходный код
wp-includes/theme.php:181
function get_stylesheet() {
/**
* Filters the name of current stylesheet.
*
* @since 1.5.0
*
* @param string $stylesheet Name of the current stylesheet.
*/
return apply_filters( 'stylesheet', get_option( 'stylesheet' ) );
}
История изменений
| Версия | Описание |
|---|---|
| 1.5.0 | Introduced. |

