theme_file_uri filter-hook . WP 4.7.0
Filters the URL to a file in the theme.
Usage
add_filter( 'theme_file_uri', 'filter_function_name_3499', 10, 2 ); function filter_function_name_3499( $url, $file ){ // filter... return $url; }
- $url(string)
- The file URL.
- $file(string)
- The requested file to search for.
Changelog
Since 4.7.0 | Introduced. |
Where the hook is called
theme_file_uri
wp-includes/link-template.php 4327
return apply_filters( 'theme_file_uri', $url, $file );