A WordPress-centric search engine for devs and theme authors



get_template ›

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

Retrieve name of the current theme.



Source

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