apply_filters( 'relevanssi_user_searches_capability', string $capability )

This filter hook filters the capability Relevanssi uses to determine who gets access to the User searches page.


(string) The capability required to access the page, default edit_posts.

More information

Relevanssi uses capability checking to control access to the User searches page that displays the Relevanssi search logs. The default capability requirement is edit_pages, which translates to the Editor role by default.

If you want to allow Authors access to the search statistics page, you can use this:

add_filter( 'relevanssi_user_searches_capability', function() { return 'edit_posts'; } );

Users can reset the logs on the User Searches page, but that is only available to users with the manage_options capability (Administrators).