Description of category is not working in submit_listing

Why this snippet is not working?
It works for all the other fields.
I tried it also without underscore but nothing changes.

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

Solved!
It is “categories” :slight_smile:

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