I am using HivePress 1.7.23 with MeetingHive theme. Every time I edit a vendor in the WordPress admin backend (wp-admin), I must select a vendor category before I can save, even if I am just updating a small detail like commission rate or checking a checkbox.
I do not want to use vendor categories at all. Is there a way to either remove the category requirement in the admin backend or make it so the category is automatically assigned without me having to select it manually each time?
I have tried this snippet but it does not work in the backend:
add_filter( ‘hivepress/v1/models/vendor/fields’, function ($fields, $model){ $fields[‘categories’][‘required’]=false; return $fields; }, 1000, 2 );