asp_post_title_before_tokenize

This filter runs just before the post title is processed and cleared from HTML etc.., before it is passed to the tokenization process.

apply_filters('asp_post_title_before_tokenize', $title, $post);

Parameters

  • $title(string) - the post title

  • $post(WP_Post) - post type object

add_filter( 'asp_post_title_before_tokenize', 'asp_change_post_field_index', 10, 2 );
function asp_change_post_field_index( $title, $post ) {
    return $title. " my text";
}

Last updated

Copyright Ernest Marcinko