parent_theme_file_uri WordPress Filter Hook
The parent_theme_file_uri Wordpress hook allows a parent theme to override a file in the child theme. This can be useful if the child theme needs to use a different version of the file than the parent theme.
apply_filters( 'parent_theme_file_uri', string $url , string $file ) #
Filters the URL to a file in the parent theme.
Parameters
- $url
(string)The file URL.
- $file
(string)The requested file to search for.
Source
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |