Vendor category required in WordPress admin backend when editing vendors

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 );

Hi,

If you do not need vendor categories, you can simply delete them under WordPress Dashboard > Vendors > Categories. If you haven’t created them yourself, they are most likely leftover from the demo content.

Once all vendor categories are removed, the category field will no longer be displayed. By default, if categories exist, selecting one is required because they define your directory hierarchy.

If I misunderstood your request, could you please provide step-by-step instructions on how to reproduce the issue? This will help us investigate and troubleshoot it further.