Bug with "moderate any new listing" option

Hello,

When we activate this option in hivepress listings settings :

It is supposed to moderate only new listings but I noticed that it also moderate when you modify an announce even if every listings attribute has no moderating option activated.

It moderate also even if you don’t do any modification on listing.

It is a problem for me because I want to moderate any new listing but don’t moderate when people modify their listings.

Thanks in advance for your help.

EDIT : Problem solved, it was coming from a snippet. Here is a correct snippet to moderated nativ attributes :

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;
		}
		
		if(isset($form_args['fields']['description'])){
			$form_args['fields']['images']['_moderated'] = true;
		}

		return $form_args;
	},
	1000,
	2
);

Cordially, Zak.

1 Like

Thanks for sharing the snippet. Yes, there’s a known issue with the attachment attributes marked as Moderated, they send listings to Pending status even without changes - we’ll try to fix this as soon as possible.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.