get_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 theme data.
No Hooks.
Return
Array|null
. Null, if theme name does not exist. Theme data, if exists.
Usage
get_theme( $theme );
- $theme(string) (required)
- Theme name.
Notes
- See: wp_get_theme()
Changelog
Since 1.5.0 | Introduced. |
Deprecated since 3.4.0 | Use wp_get_theme() |
get_theme() get theme code WP 6.7.1
function get_theme( $theme ) { _deprecated_function( __FUNCTION__, '3.4.0', 'wp_get_theme( $stylesheet )' ); $themes = get_themes(); if ( is_array( $themes ) && array_key_exists( $theme, $themes ) ) return $themes[ $theme ]; return null; }