get_theme_roots [ WordPress-Funktionen ]
get_theme_roots ( Keine Parameter )
| Gibt zurück: |
|
| Definiert in: |
|
| Codex |
Ähnliche Funktionen: get_theme_root, get_theme_root_uri, get_raw_theme_root, get_theme_mods, get_themes
Retrieve theme roots.
Quellcode
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 ) {
search_theme_directories( true ); // Regenerate the transient.
$theme_roots = get_site_transient( 'theme_roots' );
}
return $theme_roots;
}Beispiele [ wp-snippets.com ]
Top Google Suchergebnisse
- Function Reference/get theme roots « WordPress Codex
Description. Retrieves an array of the names of theme directories keyed by the template/stylesheet or the name of the themes directory if all the themes have the ...
codex.wordpress.org - get_theme_root - WordPress Codex
... 8 Source File; 9 Related. Description. Retrieves the absolute path to the themes directory, without the trailing slash. Usage. <?php get_theme_root(); ?> ...
codex.wordpress.org - get_theme_roots (WordPress Function) - WPSeek.com
Retrieve theme roots. WordPress lookup for get_theme_roots, a WordPress Function.
wpseek.com - Paths For Building WordPress Themes or Plugins | computeraxe
Jun 23, 2011 ... No trailing slash. get_theme_roots(): Usage: get_theme_roots(); Returns: Themes directory with a leading slash, like “/themes”. site_url() ...
computeraxe.com
