Title: Fire Webhook On Button Press
Last modified: June 2, 2021

---

# Fire Webhook On Button Press

 *  Resolved [solaris50](https://wordpress.org/support/users/solaris50/)
 * (@solaris50)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/fire-webhook-on-button-press/)
 * Hi,
 * I want to fire a webhook when a button on my site is pressed. How would I go 
   about doing this?
 * The reason is for my registration page I want to have a button that will send
   a message to the email address that the user has input. I am using ultimate member
   for the registration page but a normal elementor button for the actual button.
 * Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [Ironikus](https://wordpress.org/support/users/ironikus/)
 * (@ironikus)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/fire-webhook-on-button-press/#post-14517092)
 * Hey [@solaris50](https://wordpress.org/support/users/solaris50/) – Thank you 
   very much for your message.
    At the current point, you would need to write your
   own Javascript to request a webhook trigger in the backend. As this requires 
   some custom development, I suggest contacting a dev if it’s urgent. Apart from
   that, we also added a feature request for a button integration on our integration
   page – feel free to vote for it here: [https://ironikus.com/wp-webhooks/request-integrations/](https://ironikus.com/wp-webhooks/request-integrations/)
 * That’s it so far – do let me know in case you have any further questions. 🙂
 *  Thread Starter [solaris50](https://wordpress.org/support/users/solaris50/)
 * (@solaris50)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/fire-webhook-on-button-press/#post-14518028)
 * Hi- that’s fine I am able to write custom JS.
 * Can you guide me through the file manager to where I can find the file to place
   this code? Or if I have to create a new file that’s fine too, I’m just not sure
   of the location in the backend.
 * Thanks
 *  Plugin Contributor [Ironikus](https://wordpress.org/support/users/ironikus/)
 * (@ironikus)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/fire-webhook-on-button-press/#post-14550671)
 * Hey [@solaris50](https://wordpress.org/support/users/solaris50/) – Thank you 
   very much for your answer. As it required you to add the Javascript file via 
   the WordPress hooks to create nonces and register the Ajax functionality. I found
   a neat topic on StackOverflow to give you a brief understanding: [https://stackoverflow.com/questions/27321516/calling-ajax-function-on-button-click-within-wordpress-plugin](https://stackoverflow.com/questions/27321516/calling-ajax-function-on-button-click-within-wordpress-plugin)
 * Please keep in mind that the code there does not use nonces, which I highly recommend
   using as it adds a layer of security.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Fire Webhook On Button Press’ is closed to new replies.

 * ![](https://ps.w.org/wp-webhooks/assets/icon-256x256.jpg?rev=2656397)
 * [WP Webhooks - Automate repetitive tasks by creating powerful automation workflows directly within WordPress](https://wordpress.org/plugins/wp-webhooks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-webhooks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-webhooks/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-webhooks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-webhooks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-webhooks/reviews/)

## Tags

 * [button](https://wordpress.org/support/topic-tag/button/)
 * [new-user](https://wordpress.org/support/topic-tag/new-user/)
 * [Registration](https://wordpress.org/support/topic-tag/registration/)
 * [user](https://wordpress.org/support/topic-tag/user/)

 * 3 replies
 * 2 participants
 * Last reply from: [Ironikus](https://wordpress.org/support/users/ironikus/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/fire-webhook-on-button-press/#post-14550671)
 * Status: resolved