How can I hide a category

Hi. Is it possible to hide parent categories while adding an ad?
I have this code:

 add_filter(
	'hivepress/v1/forms/listing_submit',
	function( $form ) {
		if(isset($form['fields']['categories'])){
			$form['fields']['categories']['type'] = 'checkboxes';
		}
		return $form;
	},
	1000
);

Thanks to this I have such an effect, but I would like to hide the “baza” category and block the possibility of adding ads to the “obozy” category

I would also like to hide these fields from the search engine.

Sorry, there’s no simple code snippet for this, it would require a custom implementation. If customizations beyond the available features are required for your site, please consider hiring someone for custom work https://fvrr.co/32e7LvY

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.