Why when I hook to this ‘hivepress/v1/forms/listing_update/errors’ it also affecting form for new listing submit? How to hook only for listing edit form?
add_filter(
'hivepress/v1/forms/listing_update/errors',
function( $errors, $form ) {
var_dump($errors);
return $errors;
},
1000,
2
);