get_theme_roots [ WordPress Function ]
get_theme_roots ( No parameters )
| Returns: |
|
| Defined at: |
|
Benzer Fonksiyonlar: get_theme_root, get_theme_root_uri, get_raw_theme_root, get_theme_mods, get_themes
Retrieve theme roots.
Source
<?php
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;
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/get theme roots « WordPress Codex
Description. Retrieves the name of themes directory. Does not have trailing, but a leading slash. Usage. <?php echo get_theme_roots(); ?> Parameters. None ...
codex.wordpress.org - Function Reference/get theme root « WordPress Codex
Description. Retrieve path to themes directory. Does not have trailing slash. Usage. <?php get_theme_root() ?> Parameters. None. Return Values ...
codex.wordpress.org - [22-Feb-2010 16:45:35] PHP Fatal error: Call to undefined function ...
... get_template_directory, get_theme_root, get_theme_roots, get_site_transient, delete_site_option, delete_option [05-Aug-2010 07:37:49] WordPress database ...
www.cfoa.org - 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