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.


Top ↑

Source

File: wp-includes/link-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More