WordPress at a glance

get_template() WP 1.0

Retrieve name of the current theme.

Возвращает

String. Template name.

Works based on: get_option()
Hooks from the function

Usage

get_template();

Список изменений

С версии 1.5.0 Введена.

Code of get_template() WP 5.5.1

wp-includes/theme.php
<?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
    Log In . Register