impact
1
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
);
impact
2
Solved!
It is “categories”
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
system
Closed
3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.