wp_get_theme
wp_get_theme ( $stylesheet = null, $theme_root = null )
Parameters:- (string) $stylesheet Directory name for the theme. Optional. Defaults to current theme.
- (string) $theme_root Absolute path of the theme root to look in. Optional. If not specified, get_raw_theme_root() is used to calculate the theme root for the $stylesheet provided (or current theme).
Returns:- (WP_Theme) Theme object. Be sure to check the object's exists() method if you need to confirm the theme's existence.
Defined at: - Introduced in WordPress: 3.4.0
- Deprecated in WordPress: -
Description
Gets a WP_Theme object for a theme.