asp_post_content_before_tokenize_clear

This filter runs just before the post content is processed (shortcode execution, iframe extraction) and cleared from HTML etc.., before it is passed to the tokenization process.

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

Parameters

  • $content(string) - the post content

  • $post(WP_Post) - post type object

add_filter( 'asp_post_content_before_tokenize_clear', 'asp_change_post_content_index', 10, 2 );
function asp_change_post_content_index( $content, $post ) {
    return $content. " my text";
}

Last updated

Copyright Ernest Marcinko