WordPress как на ладони
wordpress jino
фильтр не описан

theme_root хук-фильтр . WP 1.5.0

Filters the absolute path to the themes directory.

Использование

add_filter( 'theme_root', 'filter_function_name_9738' );
function filter_function_name_9738( $theme_root ){
	// filter...

	return $theme_root;
}
$theme_root(string)
Absolute path to themes directory.

Связи хука

Используется в: get_theme_root()

Кусок кода с хуком

Фрагмент из: wp-includes/theme.php WP 4.9
...
		// Always prepend WP_CONTENT_DIR unless the root currently registered as a theme directory.
		// This gives relative theme roots the benefit of the doubt when things go haywire.
		if ( ! in_array( $theme_root, (array) $wp_theme_directories ) )
			$theme_root = WP_CONTENT_DIR . $theme_root;
	} else {
		$theme_root = WP_CONTENT_DIR . '/themes';
	}

	/**
	 * Filters the absolute path to the themes directory.
	 *
	 * @since 1.5.0
	 *
	 * @param string $theme_root Absolute path to themes directory.
	 */
	return apply_filters( 'theme_root', $theme_root );
}

/**
 * Retrieve URI for themes directory.
 *
 * Does not have trailing slash.
 *
 * @since 1.5.0
 *
 * @global array $wp_theme_directories
 *
 * @param string $stylesheet_or_template Optional. The stylesheet or template name of the theme.
 * 	                                     Default is to leverage the main theme root.
 * @param string $theme_root             Optional. The theme root for which calculations will be based, preventing
 * 	                                     the need for a get_raw_theme_root() call.
...