wp_get_theme Wordpress function


Description:

Gets a WP_Theme object for a theme.


Syntax:


Arguments:

(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:

wp-includes/theme.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/wp_get_theme


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