Hi,
Please try this PHP snippet:
add_filter(
'hivepress/v1/forms/listing_filter',
function( $form_args, $form ) {
if(isset($form_args['fields']['_category'])){
$form_args['fields']['_category'] = array_merge(
$form_args['fields']['_category'],
[
'label' => 'Categories',
'type' => 'select',
]
);
}
return $form_args;
},
1000,
2
);
If the error is still displayed, please send us the error logs.