wp_get_theme Wordpress function


Gets a WP_Theme object for a theme.



(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).

Return Type:

(WP_Theme) Theme object. Be sure to check the object's exists() method if you need to confirm the theme's existence.

Define At:


Wordpress Reference URL:


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×