Moderating Listing Changes

Hi there,

I have added this snippet to my web app, but since then I have to manually approve any changes, for example if someone changes the price I want it automatically approved and changed, I only want moderation for the changes mentioned below in the code, is it possible to do that?

add_filter(
	'hivepress/v1/forms/listing_update',
	function( $form ) {
		$form['fields']['images']['_moderated'] = true;
		$form['fields']['title']['_moderated'] = true;
		$form['fields']['description']['_moderated'] = true;

		return $form;
	}
);

Hi,

The code snippet you provided moderates only the images, title, and description. Ensure you have no other code added that moderates the listing price. Also, if the price is an attribute listing, make sure that the moderator feature is not enabled in Listings > Attributes.

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