manual validation of the modification of an ad

This topic contains 6 replies, has 4 voices, and was last updated by  Kiran 5 years, 3 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #509561

    Monfort jacques
    Expired Member
    Post count: 57

    Hello

    I want to know how to enable nonautomatic validation of a modified ad
    this should be possible because it is expected to send an email
    thank you

    #509563

    Guust
    Moderator
    Post count: 29970

    I am not sure that I understand your question but I’ll try to answer.
    When a user edits a listing, admin can receive notification that the listing has changed: GD > Emails tab > admin emails > Listing edited.

    Let us know if I misunderstood. Thanks

    #509566

    Monfort jacques
    Expired Member
    Post count: 57

    Yes
    but the user can also receive an e-mail as his announcement is pending validation after a change, but I do not see what is needed so that his ad is not put online automatically.
    It can be dangerous

    #509577

    Guust
    Moderator
    Post count: 29970

    Only adding a new listing can be set to draft pending a review.
    If an edited listing would go to draft and therefore offline, then you Will get broken links, which is not a good idea.

    I’ll get the developers to have a look at my answer too, in case something needs to be added.

    Thanks

    #509584

    Monfort jacques
    Expired Member
    Post count: 57

    ok but recognize that this is not normal, in this case the user can write anything without moderation! it is dangerous and take a useless risk, thank you to ask the developers to do something as it exists on ALL sites.
    thank you

    #509634

    Alex Rollin
    Moderator
    Post count: 27815

    Unfortunately this feature is not currently available.

    Moderation is on our list and I have taken this up as a suggestion and will share it with our development team to see whether we can work on this in the near future.

    #509674

    Kiran
    Moderator
    Post count: 7069

    Hi Monfort,

    You can achieve by using following PHP snippet. This snippet will set status of listing to “Pending” when it edited by user. You can edit content of email sent when listing is edit by author to add details about review listing data.

    
    
    /**
     * Set post status to pending on listing edit.
     */
    function gd_snippet_190923_pre_admin_post_edit_email( $email_name, $email_vars ) {
    	$data = array();
    	$data['ID'] = $email_vars['post']->ID;
    	$data['post_status'] = 'pending';
    
    	return wp_update_post( $data );
    }
    add_action( 'geodir_pre_admin_post_edit_email', 'gd_snippet_190923_pre_admin_post_edit_email', 20, 2 );

    Regards,
    Kiran

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount