get_current_theme()
Deprecated since 3.4.0. It is no longer supported and may be removed in future releases. Use wp_get_theme() instead.
Retrieve current theme name.
No Hooks.
Returns
String.
Usage
get_current_theme();
Notes
- See: wp_get_theme()
Changelog
| Since 1.5.0 | Introduced. |
| Deprecated since 3.4.0 | Use wp_get_theme() |
get_current_theme() get current theme code WP 6.8.3
function get_current_theme() {
_deprecated_function( __FUNCTION__, '3.4.0', 'wp_get_theme()' );
if ( $theme = get_option( 'current_theme' ) )
return $theme;
return wp_get_theme()->get('Name');
}