# Use Discourse webhooks with PHP

**URL:** <https://meta.discourse.org/t/use-discourse-webhooks-with-php/50543>\
**Category:** Administrators\
**Tags:** webhooks, how-to\
**Created:** [September 23, 2016, 2:44pm UTC](https://meta.discourse.org/t/use-discourse-webhooks-with-php/50543 "2016-09-23T14:44:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [February 2, 2017, 10:48pm UTC](https://meta.discourse.org/t/use-discourse-webhooks-with-php/50543/2 "2017-02-02T22:48:01Z")

</div>

Thanks for that! It took me a while to figure out how to get this to work with the WordPress REST API. Here’s a basic skeleton plugin for adding a custom endpoint to WordPress for processing a Discourse webhook request.  
[GitHub - scossar/wp-discourse-custom-webhook-request: A skeleton plugin for processing a webhook request to a custom endpoint from Discourse to WordPress. · GitHub](https://github.com/scossar/wp-discourse-custom-webhook-request)

---

_[View the full topic](https://meta.discourse.org/t/use-discourse-webhooks-with-php/50543)._
