relevanssi_log_get_user

apply_filters( 'relevanssi_log_get_user', WP_User $user )

Filters the WP_User object when logging searches.

Parameters

$user
(WP_User) The current user who is doing the search.

More information

Relevanssi checks the current user when doing logging, because some users may be blocked from the logs. Relevanssi uses wp_get_current_user() to fetch the WP_User object. You can use this filter hook to do something with the user object before Relevanssi checks who the user is.