Title: parent_theme_file_uri
Published: December 6, 2016
Last modified: August 20, 2026

---

# apply_filters( ‘parent_theme_file_uri’, string $url, string $file )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/parent_theme_file_uri/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/parent_theme_file_uri/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/parent_theme_file_uri/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/parent_theme_file_uri/?output_format=md#changelog)

Filters the URL to a file in the parent theme.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/parent_theme_file_uri/?output_format=md#parameters)󠁿

 `$url`string

The file URL.

`$file`string

The requested file to search for.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/parent_theme_file_uri/?output_format=md#source)󠁿

    ```php
    return apply_filters( 'parent_theme_file_uri', $url, $file );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/link-template.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/link-template.php#L4696)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/link-template.php#L4696-L4696)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/parent_theme_file_uri/?output_format=md#related)󠁿

| Used by | Description | 
| [get_parent_theme_file_uri()](https://developer.wordpress.org/reference/functions/get_parent_theme_file_uri/)`wp-includes/link-template.php` |

Retrieves the URL of a file in the parent theme.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/parent_theme_file_uri/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.7.0](https://developer.wordpress.org/reference/since/4.7.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fparent_theme_file_uri%2F)
before being able to contribute a note or feedback.