Relevanssi Premium adds Relevanssi tools to post edit pages and in the quick edit box. If you want to disable these, there’s an option to hide both. But what if you want to keep the Relevanssi tools on the edit pages, but want to remove them from the quick edit?
The option removes both, but there’s a solution. The quick edit features are added with the WordPress filter hook quick_edit_custom_box and can be removed by unhooking the Relevanssi function from that hook. You can do this with this little snippet:
add_action( 'init', function() {
remove_filter( 'quick_edit_custom_box', 'relevanssi_quick_edit_custom_box' );
}, 11);Add this to your site, and the quick edit features will be gone.
It’s important to wrap the remove_filter() in the init action, because otherwise this will have no effect if you put this code in your theme. Theme code runs before plugin code, so you’d first remove the filter and then Relevanssi would add it. Relevanssi adds the filter in an init action on priority 10, so the priority 11 on init action is the first possible time to remove it.