This function has been deprecated. That means it has been replaced by a new function or is no longer supported, and may be removed from future versions. All code that uses this function should be converted to use its replacement if one exists. See also wp-includes/deprecated.php.
Use
wp_get_theme instead.
This page redirects to an external site: https://developer.wordpress.org/reference/functions/get_current_theme/
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