get_template()

Retrieve name of the current theme.


Return

(string) Template name.


Source

File: wp-includes/theme.php

function get_template() {
	/**
	 * Filters the name of the current theme.
	 *
	 * @since WP-1.5.0
	 *
	 * @param string $template Current theme's directory name.
	 */
	return apply_filters( 'template', get_option( 'template' ) );
}


Changelog

Changelog
Version Description
WP-1.5.0 Introduced.