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.


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