WordPress at a glance

get_template() WP 1.0

Retrieve name of the current theme.

Works based on: get_option()
Hooks in function
Return

String. Template name.

Usage

get_template();

Code of get template: wp-includes/theme.php VER 5.0.3

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

Related Functions

From tag: path (directory folder)

More from category: Other Theme Functions

No comments
    Hello, !     Log In . Register