Add new parameter to the header
-
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.
- The topic ‘Add new parameter to the header’ is closed to new replies.