Disable Vendors From Selecting Their Category

Hello,

Is there a way to prevent vendors from selecting their category when completing their profiles?
I’m using the categories for certain permissions and vendors cannot be allowed to edit them themselves.

This is a screenshot of the select that shows on the complete profile page:

Thank you,
Andrew

Please try this PHP snippet

add_filter( 
	'hivepress/v1/models/vendor/fields', 
	function ($fields, $model){
		$fields['categories']['required']=false;
		return $fields;
	},
	1000,
	2 
);

Hello,

Unfortunately, this does not hide the categories selection. It simply makes it so vendors are not required to choose a vendor category. I don’t want them to be able to choose one and would like to hide the category selection on the front end. Currently I have it disabled. Do you know of a way to hide it?

Thank you,
Andrew

Please try this PHP snippet instead

add_filter( 
	'hivepress/v1/models/vendor/fields', 
	function ($fields, $model){
		$fields['categories']['required']=false;
		return $fields;
	},
	1000,
	2 
);

add_filter( 
	'hivepress/v1/forms/user_update_profile', 
	function ($form){
		unset($form['fields']['categories']);
		return $form;
	},
	1000,
	2 
);