Moderateing description changes

  • Author
    Posts
  • arcadi

    Hi,

    Is it possible to moderate when there are changes in the description, as is it possible to do with the rest of attributes in the lastest version?

    Thanks.

    ihordeveloper

    Sure, but with a code snippet:

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

    it doesn’t work for me. another snippet to try?

    Thanks!

    jon

    It would be nice if every update to the ad was moderate. You know snippet?

    ihordeveloper

    Please make sure that you added it correctly, I tested it locally and it changes listing status to “pending” if the description is changed. You can also make titles moderated:

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

    Does not work, I entered the code well.
    🙁

    ihordeveloper

    I tested it again, and it seems to work. After you add it, edit any existing listing on the front-end, and try adding some random text at the end of the listing description.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

Subscribe

Sign In

Don't have an account? Register

Forgot password?

Register

Already have an account? Sign In

Forgot password?

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.