Filters the path to a file in the theme.
$pathstring$filestringwp-includes/class-wp-theme.php:1643WP_Theme::get_file_path()wp-includes/global-styles-and-settings.php:418wp_theme_has_theme_json()wp-includes/link-template.php:4732get_theme_file_path() * * @since 4.7.0 * * @param string $path The file path. * @param string $file The requested file to search for. */ return apply_filters( 'theme_file_path', $path, $file );} /** * Retrieves the path of a file in the parent theme. * * @since 4.7.0Introduced in 4.7.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.