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.
Source
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |