Hey everyone,
I’m working on a WordPress site and want to add SMS and email OTP (One-Time-Password) verification to a page with a WPForm. I’m thinking of using Twilio’s API for this.
I reached out to WPForms support about integrating Twilio, but they only suggested using Zapier, which costs extra. Not really what I was hoping for.
So I’m wondering: is there a way to connect Twilio and WPForms directly on my WordPress site, without needing Zapier? Has anyone done this before or know if it’s even possible?
I’ve also contacted Twilio support but haven’t heard back yet. Any insights would be super helpful!
Thanks for your time!
While direct integration is possible, it requires coding skills. You’d need to create a custom WordPress plugin that hooks into WPForms’ submission process and uses Twilio’s PHP SDK to send SMS. This approach involves writing PHP code to handle form submissions, validate input, and trigger Twilio API calls. It’s more complex than using Zapier but offers greater control and cost savings in the long run. Consider your technical expertise and time investment before proceeding. If you’re comfortable with PHP and WordPress development, this could be a viable solution for your OTP verification needs.
I’ve actually tackled this issue before. You can definitely integrate Twilio with WPForms without Zapier, but it does require some custom coding. Here’s what worked for me:
I created a simple WordPress plugin that hooks into WPForms’ form submission process. In the plugin, I used Twilio’s PHP SDK to handle the SMS functionality. It’s not plug-and-play, but it gives you full control over the integration and saves money in the long run.
The tricky part was handling the OTP verification flow. I ended up storing the OTP in a transient and adding a custom validation step to the form. It took some trial and error, but the end result was pretty solid.
If you’re comfortable with PHP and have some experience with WordPress development, I’d say go for it. Just be prepared to spend some time debugging and testing to get everything working smoothly.
hey livbrown, i did smth similar! you can integrate twilio direct w/wpforms using custom code and twilio’s php sdk, which is cheaper than zapier. it’s a bit techy and you’ll need to hook wpforms submission, but it should work. lmk if u need tips.