Keep periods inside of words in Relevanssi

Keep periods inside of words in Relevanssi.

Snippet Type

Execute on Child Sites

Snippet

add_filter( 'relevanssi_remove_punctuation', function( $a ) {
    $a = preg_replace( '/(\w)\.(\w)/', '\1\2', $a );
    $a = preg_replace( '/(\w)\.(\w)/', '\1\2', $a );
    return $a;
}, 8 );

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.