Filters the path to a file in the theme.
Parameters
$path
string- The file path.
$file
string- The requested file to search for.
Source
return apply_filters( 'theme_file_path', $path, $file );
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |
CARVIEW |
Filters the path to a file in the theme.
$path
string$file
stringreturn apply_filters( 'theme_file_path', $path, $file );
Used by | Description |
---|---|
wp_theme_has_theme_json()wp-includes/global-styles-and-settings.php | Checks whether a theme or its parent has a theme.json file. |
WP_Theme::get_file_path()wp-includes/class-wp-theme.php | Retrieves the path of a file in the theme. |
get_theme_file_path()wp-includes/link-template.php | Retrieves the path of a file in the theme. |
Version | Description |
---|---|
4.7.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.