Skip to content

AffiliateWP Automations

How to Approve an AffiliateWP Affiliate Automatically When They Complete a Training Course

If you want affiliates to understand your product and your rules before they promote it, make them earn their approval. To approve an AffiliateWP affiliate automatically when they complete a training course, use Zapify's A user completes a course trigger for LifterLMS with the Set the user's affiliate status action. AffiliateWP and LifterLMS are Zapify PRO integrations.

What this automation does

The automation is one trigger plus one action:

  • Trigger: A user completes a course (LIFTERLMS_COURSE_COMPLETED, LifterLMS)
  • Action: Set the user's affiliate status (AFFWP_SET_AFFILIATE_STATUS, AffiliateWP)

When an applicant completes your onboarding course, Zapify sets their affiliate status to Active.

PRO feature

LifterLMS and AffiliateWP are Zapify PRO integrations, so this automation needs an active Zapify PRO licence.

No Connection needed for AffiliateWP

AffiliateWP runs on your own site, so there is no API key to paste for it and nothing to set up under Settings → Connections.

Before you start

  • AffiliateWP installed and active.
  • LifterLMS installed and active, with a course students can finish.

How to build the automation

Step 1: Create a new automation

  1. In the WordPress admin, go to Zapify → Automations.
  2. Click Add New to open the builder.
  3. Name it clearly, such as Approve affiliates after training.

Create a new automation

Step 2: Add the "A user completes a course" trigger

  1. Click Add Trigger.

Add a trigger

  1. Choose LifterLMS as the app.

Select LifterLMS as the trigger

  1. Select A user completes a course.

Select A user completes a course

  1. In the Course field, pick the course, or leave it as any course.

Step 3: Add the "Set the user's affiliate status" action

  1. Click Add Action.

Add an action

  1. Choose AffiliateWP as the app.

Select AffiliateWP as the action

  1. Select Set the user's affiliate status.

Select Set the user's affiliate status

Step 4: Configure the action

Field Required What it does
User No Leave empty to use the user this automation is running for, or enter a user ID or email.
Status Yes Active, Inactive, Pending or Rejected.

Set Status to Active. Leave User empty so the student who finished the course is approved. If they have not applied as an affiliate, the run fails and says the user is not an affiliate, so ask applicants to register first.

Step 5: Set the steps Live and save

Each trigger and action has its own Live / Off / Draft switch. A new automation starts as a Draft and does nothing until its steps are Live.

  1. Set the trigger and every action to Live.
  2. Click Save.

Set the automation live

Step 6: Test it

Apply as a test affiliate, complete the course as that user, and check that their status becomes Active in AffiliateWP → Affiliates.

Tokens you can use

Token What it holds
Course ID The numeric ID of the course.
Course title The course's name.
Course URL The permalink to the course.

The action makes one token available to later actions: Affiliate ID. If the affiliate already has that status, the action succeeds and changes nothing. The user must already be an affiliate, otherwise the run fails and says so.

Conclusion

With the A user completes a course trigger and the Set the user's affiliate status action, approval is earned, not granted. Because the approval changes their status, you can also email them when they are approved.

FAQs

Is this free in Zapify?

No. AffiliateWP and LifterLMS are both Zapify PRO integrations and need an active Zapify PRO licence.

What if the person is not an affiliate yet?

The action fails with a message that the user is not an affiliate. Set the program to take applications first, then use this to approve them.

Will AffiliateWP send its own approval email?

Yes, AffiliateWP's own approval notification still applies when the status becomes Active.

Do I need to write any code?

No. Everything is configured visually in the Zapify builder.

Was this page helpful?