theme_file_path WordPress Filter Hook
The theme_file_path hook allows you to change the default file path for a specific file in your theme. This can be useful if you want to change the location of a specific file, or if you want to ensure that a file is always loaded from a specific location.
apply_filters( 'theme_file_path',  string $path ,  string $file  ) #
Filters the path to a file in the theme.
Parameters
- $path
- (string)The file path. 
- $file
- (string)The requested file to search for. 
Source
Changelog
| Version | Description | 
|---|---|
| 4.7.0 | Introduced. |