Support » Plugin: WPAdverts - Classifieds Plugin » Moderating Ads by Default – Not Working

  • Resolved johndoe01

    (@johndoe01)


    Greetings.
    I’m having a problem. I need that by Default all ads gets moderated. I set the shortcode [adverts_add moderate=”1″] on the add page, but after passing through Paypal it gets automatically posted, despite this setting is on, because the ad needs to be reviewed before posting. Before testing Paypal i used bank deposit and the ad gets on hold until payment is set to completed.
    Am I missing something on the procedure?

    Thanks in advance.

    PS: Moderation requires that some additional settings from administration should be done (Exclusive Admin fields to be set).

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    I’m chiming in as I’m experiencing the exact same issue: the ad gets published once the paypal payment goes through, even though moderation is set in the shortcode.

    How can we keep the post_status as pending for admin review?

    Thanks,
    Matt

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    the Ads are automatically published when the payment is marked as completed (as the payment itself is usually enough to be sure that the user is serious about posting the Advert), so the moderate param is actually for the free ads only.

    With Bank Transfer, the payment needs to be approved manually but with the PayPal payment, it happens instantly after the payment.

    If for some reason you do not want the Ad to be published instantly then you can disable this feature by adding the code below in your theme functions.php file

    
    add_action( "init", function() {
      remove_action("adverts_payment_completed", "adext_payment_completed_publish");
    }, 1000 );
    

    Hi Greg,

    Thank you very much! 🙂

    Cheers,
    Matt

    Greetings. The piece of code works as intended. Now I have to see if the new workflow works for the client.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.