wpseek.com
A WordPress-centric search engine for devs and theme authors



get_template › WordPress Function

Since1.5.0
Deprecatedn/a
get_template ( No parameters )
Returns:
  • (string) Template name.
Defined at:
Codex:

Retrieves name of the active theme.



Source

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