• Resolved Vane

    (@vanetreg)


    Hi,

    My use cases where posts and comments are hold for moderation before publishing.

    Is there a way to set up with either the free or the Pro version of the plugin such scenarios, where there are multiple triggering events?
    For example a seqence of 2 events: new_post_created –> post_status_set_to_published ( the post’s status change from default (draft) to published ).

    Same is necessary for comments.

    In some other cases the multiple trigger events are not sequential, but all should have to be happened to trigger firing the webhook.

    Further more complex scenario when we want to fire different webhooks when post / comment is approved and when it is not approved ( status set to trash or spam or any other except published or draft. I haven’t found info about similar cases in your docs.

    I can handle these scenarios with Integromat/Zapier, but I give it a try and ask you first. You may also find it a good new feature for Pro ??

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Ironikus

    (@ironikus)

    Hi @vanetreg – thank you very much for reaching out and providing all of these amazing details! ??

    Since our launch of WP Webhooks Pro (3.1.0), we offer a new webhook endpoint called bulk_webhooks – it’s one of the most powerful webhook actions we built so far since it allows you to fire multiple internal and external webhook actions and triggers.
    At the same time, it is completely compatible with our authentication and data mapping feature.
    If you want to read more about the endpoint, you can do so via the web view of our pro version: https://wp-webhooks.com/pro/?wpwh=wp-webhooks-pro&wpwhtb=receive-data (Simply check the description of the bulk_webhooks endpoint).

    The above-mentioned endpoint fill fire all added webhook calls in the sequential order (top to bottom), which allows you to fire multiple updates at the same time.

    In regards to your second question of conditional webhooks: It’s possible, but would require some custom lines of code. The way I would approach it is by using the do_action argument (which is available in mostly any webhook action) by firing some custom lines of code that check for the condition and then trigger another webhook action internally using the “Send Data On Custom Action” webhook trigger or a custom written webhook call using the wp_remote_request() function.

    While the second approach involves some development, I suggest talking back with one of your developers. ??
    If you have any additional questions, feel free to ask at any time!

    Thread Starter Vane

    (@vanetreg)

    Hi @ironikus – thank you for the detailed response! ??

    Plugin Contributor Ironikus

    (@ironikus)

    Hey @vanetreg – it’s my pleasure. If you need anything else, feel free to reach out again. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Working with moderated content with webhooks’ is closed to new replies.