get_current_theme()
Deprecated from version 3.4.0. It is no longer supported and can be removed in future releases. Use wp_get_theme() instead.
Retrieve current theme name.
No Hooks.
Return
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.7.1
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'); }