parent_theme_file_path WordPress Filter Hook
The parent_theme_file_path hook is used to get the path to the parent theme's file. This is useful when you need to include a file from the parent theme.
apply_filters( 'parent_theme_file_path', string $path , string $file ) #
Filters the path to a file in the parent theme.
Parameters
- $path
(string)The file path.
- $file
(string)The requested file to search for.
Source
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |