get_template() – Retrieve name of the current theme.

You appear to be a bot. Output may be restricted

Description

Retrieves name of the current theme.

Usage

$string = get_template();

Parameters

Returns

string Template name.

Source

File name: wordpress/wp-includes/theme.php
Lines:

1 to 10 of 10
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' ) );
}
 

 View on GitHub View on Trac