How to make the revision manual if they modify the title or description of an ad?
Please try this PHP snippet
add_filter(
'hivepress/v1/forms/listing_update',
function( $form_args, $form ) {
if(isset($form_args['fields']['title'])){
$form_args['fields']['title']['_moderated'] = true;
}
if(isset($form_args['fields']['description'])){
$form_args['fields']['description']['_moderated'] = true;
}
return $form_args;
},
1000,
2
);
1 Like
Thank you very much, it works very well. That is great
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.