asp_index_after_shortcode_execution

Post content/excerpt/other field filtered after the shortcodes have been executed and before they are sent to tokenization.

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

Parameters

  • $content (string) - post content/excerpt or any other field eligible for shortcode execution

  • $post (WP_Post) - post type object

The return value should always be an string

Sample usage

add_filter( 'asp_index_after_shortcode_execution', 'asp_change_cf_index', 10, 3 );
function asp_change_cf_index( $content, $post ) {
return $content . 'my custom text';
}