Enroll your user in a course.
This plugin is designed to be installed on the site being used alongside your automaton plugin In this case, we will be using what we feel is the best automation plugin for this purpose, and that is FlowMattic but as long as your automaton allows directly running a PHP function and individual variables it should work with no issues.
You need the following information to enroll a user on a course
- The Course "ID" in our example is 2; this will be automatically converted to the "Post ID
- the user's email address (we will check it exists and if not create a user with that email address)
So you need to send the following information
Name | Value |
Email Address to add the course to and to create if it doesn't exist |
|
$course_id | The course ID in our case from above it is 2 |
Flowmattic Setup Example:
- This is the name of the function within the plugin we are calling "create_or_enroll_user_in_course_by_course_id"
- We have to send individual variables called email and course_id into the function for it to work
- this should be our email from above of the user to enroll
- This should be our course_id as described above