asp_index_after_shortcode_execution
Post content/excerpt/other field filtered after the shortcodes have been executed and before they are sent to tokenization.
1
apply_filters('asp_index_after_shortcode_execution', $content, $post);
Copied!

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

1
add_filter( 'asp_index_after_shortcode_execution', 'asp_change_cf_index', 10, 3 );
2
function asp_change_cf_index( $content, $post ) {
3
return $content . 'my custom text';
4
}
Copied!
Last modified 10mo ago
Copy link