wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.
get_theme_roots › WordPress Function
Od2.9.0
Przestarzałyn/a
› get_theme_roots ( Brak parametrów )
Powrót: |
|
Zdefiniowane na: |
|
Codex: |
Retrieves theme roots.
Powiązane Funkcje: get_theme_root, get_raw_theme_root, get_theme_root_uri, get_theme_mods, get_themes
Źródło
function get_theme_roots() { global $wp_theme_directories; if ( ! is_array( $wp_theme_directories ) || 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; }