Admin search always showing | WordPress.org

Yes. The “Use Relevanssi for admin searches” setting only applies to the search in the “Posts” list.

To control who sees “User searches”, use the relevanssi_user_searches_capability hook. The default capability here is edit_pages. For “Admin searches”, the hook is relevanssi_admin_search_capability and the default setting is edit_posts. If you want only Administrators to see these features, set the capability to update_plugins:

add_filter( 'relevanssi_user_searches_capability', function() { return 'update_plugins'; } );
add_filter( 'relevanssi_admin_search_capability', function() { return 'update_plugins'; } );

You can’t hide the features from admins this way. You can unhook

add_action( 'admin_menu', 'relevanssi_menu' );

But this will also remove the Relevanssi settings page.

Thank you! The filters worked great.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer