relevanssi_related_image_size

apply_filters( 'relevanssi_related_image_size', string $size )

This filter hook filters the image size string used for the thumbnail images in Related Posts.

Parameters

$size
(string) The image size string, default ‘post-thumbnail’.

More information

If you choose to display the post thumbnails in the Related Posts, you can use this filter hook to adjust the image size. The default size is “post-thumbnail”. If you, for example, want a non-square image size, you can use this function:

 add_filter( 'relevanssi_related_image_size', function() { return 'medium'; } );

Possible image sizes include the WordPress defaults “thumb”, “thumbnail”, “post-thumbnail”, “medium”, “medium_large” and “large”. You can introduce new image sizes with add_image_size().