the_excerpt_embed

Filters the post excerpt for the embed template.

Description

apply_filters( 'the_excerpt_embed', (string) $output ); 

Parameters (1)

0. $output (string)
The current post excerpt.

Usage

To run the hook, copy the example below.
  1. $output = apply_filters( 'the_excerpt_embed', $output ); 
  2.  
  3. if ( !empty( $output ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the the_excerpt_embed callback 
  2. function filter_the_excerpt_embed( $output ) { 
  3. // make filter magic happen here... 
  4. return $output
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'the_excerpt_embed', 'filter_the_excerpt_embed', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. 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  
  1. echo apply_filters( 'the_excerpt_embed', $output ); 
/wp-includes/default-filters.php  
  1. add_filter( 'the_excerpt_embed', 'wptexturize' ); 
  1. add_filter( 'the_excerpt_embed', 'convert_chars' ); 
  1. add_filter( 'the_excerpt_embed', 'wpautop' ); 
  1. add_filter( 'the_excerpt_embed', 'shortcode_unautop' ); 
  1. add_filter( 'the_excerpt_embed', 'wp_embed_excerpt_attachment' );