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.