• Resolved solaris50

    (@solaris50)


    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

    (@ironikus)

    Hey @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/

    That’s it so far – do let me know in case you have any further questions. 🙂

    Thread Starter solaris50

    (@solaris50)

    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

    (@ironikus)

    Hey @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

    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.