WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/get current theme

Contents

Description

Retrieve the name of the current theme.

get_current_theme() is deprecated since version 3.4! Use wp_get_theme() instead

Usage

<?php get_current_theme() ?>

Parameters

None.

Return Values

(string) 
Template name.

Examples

Current Theme Name

Get the name of the current theme.

<?php
    $theme_name = get_current_theme();
    echo $theme_name;
?>

Notes

  • Uses: apply_filters() Calls 'template_directory' filter on template directory path and template name.

Change Log

Since: 1.5.0

Source File

get_current_theme() is located in wp-includes/deprecated.php.

Related

get_stylesheet_directory

See also index of Function Reference and index of Template Tags.