• Resolved markconan

    (@markconan)


    Hi Ironikus,

    Right now I am firing all 4 of My custom webhooks to zapier using this.
    do_action('wp_webhooks_send_to_webhook', $custom_data);

    But the problem is every , I want to fire each one to one webhook link or zap.

    Is there a way where you can select if which ‘webhook url’ will be use for a specific action?

    Can You help with this issue?

    Thanks!

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

    (@ironikus)

    Hi @markconan,

    thank you a lot for your message.
    Can you tell me if you currently use the free or the pro version of the plugin?
    ?I just talked back with my team and extended the functionality of the webhook, allowing them to send the trigger only to certain webhooks.

    The functionality will be published with the next launch of both our free and premium versions. The next launch will happen within the next two days.

    To already prepare yourself: The action function accepts now a second parameter called $webhook_names, which allows you to send over an array which can include webhook names you want to trigger. If you leave the array empty, it will trigger all webhooks.

    Here’s an updated example:

    $custom_data = array(
        'data_1' => 'value'
    );
    $webhook_names = array(
        '15792546059992909'
    );
    
    do_action( 'wp_webhooks_send_to_webhook', $custom_data, $webhook_names );

    If you have further questions, please let me know.

    Plugin Contributor Ironikus

    (@ironikus)

    Hi @markconan,

    ?I just wanted to give you a quick update since we already launched the newest version. I also included your request in it, so you can use the functionality I described above with the newest version.
    If you need anything else, please let me know.

    Thread Starter markconan

    (@markconan)

    Hi Ironikus,

    I have the Pro version of the Plugin.

    Wow, This is what I really needed right now.
    Thank you for hearing my request and by implementing it right away, that was quick!

    Tested it and, It works perfectly!

    I know this feature will help others too.
    Thanks again!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Separate Custom Action to different webhook Links’ is closed to new replies.