apply_filters( 'relevanssi_options_capability', string $capability )

Filters the capability required to access the Relevanssi settings page.


(string) The capability required to access the settings page, default: manage_options

More information

By default, Relevanssi settings page is accessible to users with the manage_options capability, which in the default setup means the user has an Administrator role or higher.

If you want to adjust this, find a suitable capability from the Roles and Capabilities page and then add a filter function to your site. For example, to make the settings page also available to editors, you could use

add_filter( 'relevanssi_options_capability', function( $cap ) { return 'edit_others_posts'; } );