get_theme_roots

函数


get_theme_roots ( No parameters )
返回值
  • (array|string) An array of theme roots keyed by template/stylesheet or a single theme root if all themes have the same root.
定义位置
  • wp-includes/theme.php
    , line 376
引入
2.9.0
弃用

Retrieves theme roots.

function get_theme_roots() {
	global $wp_theme_directories;

	if ( ! is_array( $wp_theme_directories ) || count( $wp_theme_directories )