theme_root_uri filter-hookWP 1.5.0

Filters the URI for themes directory.

Usage

add_filter( 'theme_root_uri', 'wp_kama_theme_root_uri_filter', 10, 3 );

/**
 * Function for `theme_root_uri` filter-hook.
 * 
 * @param string $theme_root_uri         The URI for themes directory.
 * @param string $siteurl                WordPress web address which is set in General Options.
 * @param string $stylesheet_or_template The stylesheet or template name of the theme.
 *
 * @return string
 */
function wp_kama_theme_root_uri_filter( $theme_root_uri, $siteurl, $stylesheet_or_template ){

	// filter...
	return $theme_root_uri;
}
$theme_root_uri(string)
The URI for themes directory.
$siteurl(string)
WordPress web address which is set in General Options.
$stylesheet_or_template(string)
The stylesheet or template name of the theme.

Changelog

Since 1.5.0 Introduced.

Where the hook is called

get_theme_root_uri()
theme_root_uri
wp-includes/theme.php 682
return apply_filters( 'theme_root_uri', $theme_root_uri, get_option( 'siteurl' ), $stylesheet_or_template );

Where the hook is used in WordPress

Usage not found.