relevanssi_author_query_filter

apply_filters( 'relevanssi_author_query_filter', string $query_restrictions, array $author )

This filter hook filters the post author MySQL.

Parameters

$query_restrictions
(string) The MySQL query restrictions.

$author
(array) An array of author ID numbers, positive for inclusion and negative for exclusion.

More information

When Relevanssi processes query variables, it converts them to MySQL query restrictions. This filter hook lets you modify the MySQL query for post author parameters.

The author inclusion parameters become “ AND relevanssi.doc IN ( SELECT DISTINCT( posts.ID ) FROM $wpdb->posts AS posts WHERE posts.post_author IN ( author IDS ) )” and the author exclusion parameters become “ AND relevanssi.doc NOT IN ( SELECT DISTINCT( posts.ID ) FROM $wpdb->posts AS posts WHERE posts.post_author IN ( author IDS ) )”.