функция
since 1.5.0
get_template()
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
get_template(): string
Описание
Возвращает имя активной темы.
Возвращаемое значение
string
Исходный код
wp-includes/theme.php:317
function get_template() {
/**
* Filters the name of the active theme.
*
* @since 1.5.0
*
* @param string $template active theme's directory name.
*/
return apply_filters( 'template', get_option( 'template' ) );
}
История изменений
| Версия | Описание |
|---|---|
| 1.5.0 | Introduced. |

