WPCourseware Automation

Tech Articles | April 15, 2025 | Automation, Blog, Coding, FlowMattic, Plugins, Reallyusefulplugins, Wordpress

I was recently commissioned to do some custom integration for a client to allow them to automate enrollment and removal of “learners” in WPCourseware using FlowMattic. This was previously being done by the user using OttoKit (Formerly SureTriggers), but it was getting prohibitive based on credit usage, so they were looking for alternatives and found FlowMattic.

At this time, there is no native integration with FlowMattic, and this couldn’t be done, so they asked if I could get this done for them. Their straightforward brief involved enrolling and removing customers based on subscription status, which seemed feasible to me. We agreed to a fee for a very defined integration with the following terms.

  • FlowMattic would be on the same site
  • Enrollment
  • Removal Actions

It was also agreed that although this was a commission, we wouldn’t gatekeep the code and share it with the community. This resulted in a reduced fee for my work.

The first thing I did was inspect how OttoKit and other automators were doing when it came to these two actions, and it was apparent within a few hours that I should have a fully working beta of the integration after more testing and some real world usage of the new integration proved it was working so I polished it up ready for them to use it as a free to release plugin and with automatic updates using my Free Plugin Update Setup and with this version 1.0 was born and I released it to the world and recorded the below video

I expected to be done with this. My intention was just to get the brief completed and put it out there for others to use, as is tweaking as needed but I had several requests for additional triggers so I reached out to FlyPlugin support and asked for additional trigger information and began wrapping those in more useful action hooks and webhooks so they work with flowmattic.

Why webooks I was surprised about how many people wanted to run this but on a remote site, i.e flowmattic not being on the same site as WP Courseware and I was interested to see if I could complete what was a reasonably complex integration the closest I have done is probably my Hoster API so this was my blueprint of how I saw this working.

So with the information from support and a clear evening, I began by making the admin interface so it contained the information I wanted and then wrapped the initial action hooks in a modified hook to pass more data than the default to flowmattic to make them more useful, and version 1.1 was ready for testing

The following day, I was in and out but was able to polish this into a 1-1 mirror of the integration offered by OttoKit and other automators and had a fully working product. Some information on that is below

What was Added:

New: Custom Rest-API for Enroll
https://docs.reallyusefulplugins.com/…/how-to-enroll-a…

New: Custom Rest-API for Remove

https://docs.reallyusefulplugins.com/…/how-to-remove-a…

New: Action Hooks
https://docs.reallyusefulplugins.com/…/new-action-hooks-1

These can be triggered usingΒ https://flowmattic.com/integration/plugin-action-hooks/

flowmattic_trigger_wpcw_user_completed_unit - unit-completed

flowmattic_trigger_wpcw_user_completed_module -module-completed

flowmattic_trigger_wpcw_user_completed_course - course-completed

flowmattic_trigger_wpcw_enroll_user - user-enrolled

New: WebHooks for the Same Action Hooks
https://docs.reallyusefulplugins.com/…/webhook…

This has been an enjoyable experiment and shows you just how flexible an automaton like FlowMattic is The reason it’s my number 1 automaton is because it is so flexible with the ability to custom code your own integrations and solutions using PHP.

How do you get it?

Get the plugin: Register here – Then navigate to Free Plugins once signed up in the dashboard and download for free

Full Documentation: https://docs.reallyusefulplugins.com/automation-for-wpcourseware

Support the Author

buy me a coffee
Really Useful Plugin Logo
Appoligies for any spelling and grammer issue. As a dyslexic i need to rely on tools for this they like me are not perfect but I do try my best