wpseek.com
WordPress开发者和主题制作者的搜索引擎



get_template › WordPress Function

Since1.5.0
已弃用n/a
get_template ( 没有参数 )
返回:
  • (string) Template name.
定义在:
文档:

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