relevanssi_related_priority

apply_filters( 'relevanssi_related_priority', int $priority )

This filter hook filters the filter hook priority for adding the Related Posts element to the_content filter hook.

Parameters

$priority
(int) The filter function priority, default 99.

More information

If you have Relevanssi add the Related Posts automatically to the posts using the_content filter hook, you can use this filter hook to adjust the priority. The priority defines the running order of all the functions added to the hook. The default priority for the Related Posts is 99.

Changing this is necessary if you have other plugins that add to posts using the same hook, and you want to adjust the order. Suppose something else appears after the Relevanssi Related Posts, but you’d like it to appear before. In that case, you can move the Relevanssi Related Posts to a higher priority, so it comes later. If you don’t know the other plugin’s priority, try high numbers until the order is correct.

Add this to your site:

add_filter( 'relevanssi_related_priority', function() { return 999; } );