relevanssi_permalink

apply_filters( 'relevanssi_permalink', string $permalink )

This filter hook filters the permalink in order to add Relevanssi parameters to the URL.

Parameters

$permalink
(string) The permalink URL.

More information

This filter hook is used in the relevanssi_get_permalink() function (which also powers relevanssi_the_permalink()). The $permalink parameter comes from get_permalink().

The default action in this hook is the function relevanssi_permalink() from /lib/common.php. This function changes the link to point to $post->relevanssi_link if it exists, then adds the highlight parameter for the in-document highlighting (if necessary) and adds click tracking (if necessary).

This happens on priority 10, so if you need to make your own modifications, it’s probably best to go after that.