Support » Plugin: WP Webhooks » Add new parameter to the header

  • Resolved softmodeling

    (@softmodeling)


    Hi,

    I would need all webhooks pointing to the same URL where my server will be processing them.

    I undertand that I’d need to indicate the same URL for every webhook even if it’s the same but, could your plugin send as an additional parameter in the headers the type of event you’re sending?

    Kind of like

    ‘headers’ => array( ‘Content-Type’ => ‘application/json; charset=utf-8’, ‘WordPress-Event’ => ‘post’ ),

    for wp_remote_post calls related to the webhook new post.

    This would help filter them based on just the header information instead of having to look in the contents to see what kind of data I’m getting to guess the event I’m being alerted about.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ironikus

    (@ironikus)

    HEy @softmodeling – thank you as well for that recommendation. I’m happy to tell you that we will launch that feature with the next version.
    I will update you again as soon as we released it.

    Plugin Author Ironikus

    (@ironikus)

    Hey @softmodeling – We just included your request to add the webhook name to the header.
    You will now find a new header entry called x-wp-webhook-source – it includes only a webhook name.
    If you need anything else, please let me know. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add new parameter to the header’ is closed to new replies.