get_template

函数


get_template ( No parameters )
返回值
  • (string) Template name.
定义位置
  • wp-includes/theme.php
    , line 307
引入
1.5.0
弃用

Retrieves name of the active theme.

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' ) );
}