the_excerpt_embed
Filters the post excerpt for the embed template.
Description
Parameters (1)
- 0. $output (string)
- The current post excerpt.
Usage
- To run the hook, copy the example below.
- $output = apply_filters( 'the_excerpt_embed', $output );
- if ( !empty( $output ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the the_excerpt_embed callback
- function filter_the_excerpt_embed( $output ) {
- // make filter magic happen here...
- return $output;
- };
- // add the filter
- add_filter( 'the_excerpt_embed', 'filter_the_excerpt_embed', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'the_excerpt_embed', 'filter_the_excerpt_embed', 10, 1 );
Defined (6)
The filter is defined in the following location(s).
- /wp-includes/embed.php
- echo apply_filters( 'the_excerpt_embed', $output );
- /wp-includes/default-filters.php
- add_filter( 'the_excerpt_embed', 'wptexturize' );
- add_filter( 'the_excerpt_embed', 'convert_chars' );
- add_filter( 'the_excerpt_embed', 'wpautop' );
- add_filter( 'the_excerpt_embed', 'shortcode_unautop' );
- add_filter( 'the_excerpt_embed', 'wp_embed_excerpt_attachment' );