Advertisements

get_theme_roots

Definition:
function get_theme_roots() {}

Retrieve theme roots.

Return values

returns:An array of theme roots keyed by template/stylesheet or a single theme root if all themes have the same root.

Source code

function get_theme_roots() {

	global $wp_theme_directories;



	if ( count($wp_theme_directories) <= 1 )

		return '/themes';



	$theme_roots = get_site_transient( 'theme_roots' );

	if ( false === $theme_roots ) {

		get_themes();

		$theme_roots = get_site_transient( 'theme_roots' ); // this is set in get_theme()

	}

	return $theme_roots;

}

1775

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: