Filter hook 'the_excerpt_embed'

in WP Core File wp-includes/embed.php at line 1026

View Source

the_excerpt_embed

Filter Hook
Description
Filters the post excerpt for the embed template.

Hook Information

File Location wp-includes/embed.php View on GitHub
Hook Type Filter
Line Number 1026

Hook Parameters

Type Name Description
string $output The current post excerpt.

Usage Examples

Basic Usage
<?php
// Hook into the_excerpt_embed
add_filter('the_excerpt_embed', 'my_custom_filter', 10, 1);

function my_custom_filter($output) {
    // Your custom filtering logic here
    return $output;
}

Source Code Context

wp-includes/embed.php:1026 - How this hook is used in WordPress core
<?php
1021  	 *
1022  	 * @since 4.4.0
1023  	 *
1024  	 * @param string $output The current post excerpt.
1025  	 */
1026  	echo apply_filters( 'the_excerpt_embed', $output );
1027  }
1028  
1029  /**
1030   * Filters the post excerpt for the embed template.
1031   *

PHP Documentation

<?php
/**
	 * Filters the post excerpt for the embed template.
	 *
	 * @since 4.4.0
	 *
	 * @param string $output The current post excerpt.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-includes/embed.php
Related Hooks

Related hooks will be displayed here in future updates.