theme_root_uri WordPress Filter Hook

The theme_root_uri hook is used to retrieve the URL of the current theme. This can be useful when you need to reference resources that are located in the theme directory, such as images or JS files.

apply_filters( 'theme_root_uri', string $theme_root_uri, string $siteurl, string $stylesheet_or_template ) #

Filters the URI for themes directory.


Parameters

$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.


Top ↑

Source

File: wp-includes/theme.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
1.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More