LearnDash Zapier Integration: Sending Additional User Information

LearnDash Zapier Integration: Sending Additional User Information

I was recently hired at Codeable to write a plugin which would allow the LearnDash Zapier Integration plugin to pass additional user information with every call made to Zapier. This information needed to happen whenever global user even happened, like completing a quiz, for example. Upon reviewing the plugin, I noticed there was no filter that would allow me to pass in this additional data or an action to alter it’s default behavior.

Luckily the plugin was using WordPress’ HTTP API and I knew if I could listen to every request being made to an external site, then I could check whether or not the call was being made to Zapier and add my data there. This is exactly what I ended up doing. I’m posting this hoping that it will help someone else who needs to do this and you should get in touch with LearnDash like I did in order to ask for a filter to be added to the already existing plugin. It wouldn’t take more than 5 minutes to add a filter and open the request so that you can pass your own data.

Below is the plugin I wrote to pass a single field the User object being sent to Zapier. You can use the same technique and add as many as you’d like.

There you have it, nice and simple.

Published by

Yojance Rabelo

To me, WordPress is a system to which versatility and power come naturally. Over the last thirteen years of my life, I have seen WordPress evolve from a simple blogging platform into the leading CMS that powers more than 27% of the Internet. My experience is broad, ranging all the way from writing WordPress plugins to creating WordPress themes based on PSD files. I am a master of developing and deploying membership sites powered by WooCommerce, WooCommerce Memberships, and WooCommerce Subscriptions.