relevanssi_ellipsis

apply_filters( 'relevanssi_ellipsis', string $ellipsis )

Filters the ellipsis (…) used in excerpts.

Parameters

$ellipsis
(string) The ellipsis used in excerpts, default ‘…’.

More information

Relevanssi adds an ellipsis to the beginning and the end of an excerpt where the beginning or the end isn’t the edge of the content.

The ellipsis used is just three periods. If you want something else, you can use this filter hook.

For The Chicago Manual of Style ellipsis with three periods, separated by non-breaking spaces, you can use:

add_filter( 'relevanssi_ellipsis', function() { return '. . .'; } );

To use the Unicode horizontal ellipsis character, use:

add_filter( 'relevanssi_ellipsis', function() { return '…'; } );

For a pretty midline ellipsis, you can use:

add_filter( 'relevanssi_ellipsis', function() { return '⋯'; } );