描述:
检索当前主题的名称。
用法:
<?php echo get_template();?>
参数:
None
返回值:
当前主题名称
源文件:
function get_template() {
/**
* Filters the name of the current theme.
*
* @since 1.5.0
*
* @param string $template Current theme's directory name.
*/
return apply_filters( 'template', get_option( 'template' ) );
}
写一条评论