get_template()

最后更新于:2021-11-27 00:52:56

get_template()

Retrieves name of the current theme.

响应

(string) Template name.

源文件

文件: gc-includes/theme.php

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