Title: embed_template
Published: December 9, 2015

---

# apply_filters( ’embed_template’, string $template )

## In this article

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

[ Back to top](https://developer.wordpress.org/reference/hooks/embed_template/?output_format=md#wp--skip-link--target)

Filter the template used for embedded posts.

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

 `$template`string

Path to the template file.

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

    ```php
    *
    ```

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

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

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

## User Contributed Notes

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