WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about theme_file_path

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/class-wp-theme.php apply_filters 1534 /**
* Retrieves the path of a file in the theme.
*
* Searches in the stylesheet directory before the template directory so themes
* which inherit from a parent theme can just override one file.
*
* @since 5.9.0
*
* @param string $file Optional. File to search for in the stylesheet directory.
* @return string The path of the file.
*/
wp-includes/link-template.php apply_filters 4537 /**
* Filters the path to a file in the theme.
*
* @since 4.7.0
*
* @param string $path The file path.
* @param string $file The requested file to search for.
*/

Hook Parameters

Parameter Type Name Description
string $path The file path.
string $file The requested file to search for.