Title: the_excerpt_embed
Published: December 9, 2015
Last modified: February 24, 2026

---

# the_excerpt_embed()

## In this article

 * [Description](https://developer.wordpress.org/reference/functions/the_excerpt_embed/?output_format=md#description)
 * [Source](https://developer.wordpress.org/reference/functions/the_excerpt_embed/?output_format=md#source)
 * [Hooks](https://developer.wordpress.org/reference/functions/the_excerpt_embed/?output_format=md#hooks)
 * [Related](https://developer.wordpress.org/reference/functions/the_excerpt_embed/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/the_excerpt_embed/?output_format=md#changelog)

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

Displays the post excerpt for the embed template.

## 󠀁[Description](https://developer.wordpress.org/reference/functions/the_excerpt_embed/?output_format=md#description)󠁿

Intended to be used in ‘The Loop’.

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

    ```php
    function the_excerpt_embed() {
    	$output = get_the_excerpt();

    	/**
    	 * Filters the post excerpt for the embed template.
    	 *
    	 * @since 4.4.0
    	 *
    	 * @param string $output The current post excerpt.
    	 */
    	echo apply_filters( 'the_excerpt_embed', $output );
    }
    ```

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

## 󠀁[Hooks](https://developer.wordpress.org/reference/functions/the_excerpt_embed/?output_format=md#hooks)󠁿

 [apply_filters( ‘the_excerpt_embed’, string $output )](https://developer.wordpress.org/reference/hooks/the_excerpt_embed/)

Filters the post excerpt for the embed template.

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

| Uses | Description | 
| [get_the_excerpt()](https://developer.wordpress.org/reference/functions/get_the_excerpt/)`wp-includes/post-template.php` |

Retrieves the post excerpt.

  | 
| [apply_filters()](https://developer.wordpress.org/reference/functions/apply_filters/)`wp-includes/plugin.php` |

Calls the callback functions that have been added to a filter hook.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/the_excerpt_embed/?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%2Ffunctions%2Fthe_excerpt_embed%2F)
before being able to contribute a note or feedback.