asp_post_content_before_tokenize
This filter runs just after the post content is processed and cleared from HTML etc.., before it is passed to the tokenization process.
apply_filters('asp_post_content_before_tokenize', $content, $post);
- $content(string) - the post content
- $post(WP_Post) - post type object
add_filter( 'asp_post_content_before_tokenize', 'asp_change_post_content_index', 10, 2 );
function asp_change_post_content_index( $content, $post ) {
return $content. " my text";
}
Last modified 2yr ago