Last updated 3 years ago
This filter runs just before the tokenization process is started, but before the raw text is cleared
$raw_str (string) - the text which is about to be tokenized
apply_filters('asp_indexing_string_pre_process', $raw_str);
add_filter( 'asp_indexing_string_pre_process', 'asp_change_the_string', 10, 1 ); function asp_change_the_string( $raw_str ) { return $raw_str . " my text"; }