• Hi,

    is there any way to prevent logging the user_id of EACH logged-in user in the query results? I tried excluding them via wildcard character in the search settings but apparently that didn’t work.

    Thanks!

    • This topic was modified 3 years, 4 months ago by jcmb.
Viewing 1 replies (of 1 total)
  • Plugin Author Mikko Saari

    (@msaari)

    You can’t do this from settings, but you can do it with a filter function:

    add_filter( 'relevanssi_log_get_user', function( $user ) {
        $user->ID = 0;
        return $user;
    });

    This will set the user ID for all users to zero.

Viewing 1 replies (of 1 total)

The topic ‘exclude all user_id from log’ is closed to new replies.