theme_file_uri WordPress Filter Hook

The theme_file_uri hook is a WordPress hook that allows you to specify the URL of a file relative to the current theme. This can be useful for loading theme-specific JavaScript or CSS files.

apply_filters( 'theme_file_uri', string $url, string $file ) #

Filters the URL to a file in the theme.


Parameters

$url

(string)The file URL.

$file

(string)The requested file to search for.


Top ↑

Source

File: wp-includes/link-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.7.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