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.


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