asp_post_excerpt_before_tokenize

This filter runs just before the post excerpt is processed and cleared from HTML etc.., before it is passed to the tokenization process.

apply_filters('asp_post_excerpt_before_tokenize', $content, $post);

Parameters

  • $excerpt(string) - the post excerpt

  • $post(WP_Post) - post type object

add_filter( 'asp_post_excerpt_before_tokenize', 'asp_change_post_excerpt_index', 10, 2 );
function asp_change_post_excerpt_index( $excerpt, $post ) {
return $excerpt. " my text";
}