AffiliateWP Automations
How to Send an Email When an Affiliate Is Approved in AffiliateWP
Approving an affiliate is the moment they become part of your program, so it deserves a proper message. To send an email when an affiliate is approved in AffiliateWP, use Zapify's An affiliate's status changes trigger set to Active with the Send an email action. AffiliateWP is a Zapify PRO integration.
What this automation does
The automation is one trigger plus one action:
- Trigger: An affiliate's status changes (
AFFWP_AFFILIATE_STATUS_CHANGED, AffiliateWP) - Action: Send an email (
WP_SEND_EMAIL, WordPress)
When an affiliate's status changes to Active, whether you approve them by hand or an automation does, Zapify emails them their referral link and what to do next.
PRO feature
AffiliateWP is a Zapify PRO integration, 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.
- A working mail setup so WordPress can send email.
How to build the automation
Step 1: Create a new automation
- In the WordPress admin, go to Zapify → Automations.
- Click Add New to open the builder.
- Name it clearly, such as Email approved affiliates.

Step 2: Add the "An affiliate's status changes" trigger
- Click Add Trigger.

- Choose AffiliateWP as the app.

- Select An affiliate's status changes.

- Configure the trigger:
| Field | Required | What it does |
|---|---|---|
| Previous status | Yes | Leave on Any status, or pick the status the affiliate had before, such as Pending. |
| New status | Yes | The status that should start the automation: Active, Inactive, Pending or Rejected. |
Set New status to Active. Set Previous status to Pending if you only want people who were waiting for approval, or leave it on Any status to also catch affiliates you re-activate.
Step 3: Add the "Send an email" action
- Click Add Action.

- Choose WordPress as the app.

- Select Send an email.

Step 4: Configure the action
| Field | Required | What it does |
|---|---|---|
| To | Yes | Recipient address. Comma-separate several, or insert a token. |
| Subject | Yes | The subject line. |
| Format | Yes | HTML (default) or Plain text. |
| Body | Yes | The message. Insert tokens with the {} button. |
| Cc / Bcc | No | Extra recipients. |
| From name / From email | No | Override the sender. |
| Reply to | No | Set where replies go. |
For example:
- To: the User email token
- Subject:
You're approved, {First name}! - Body:
Welcome aboard. Your personal referral link is {Affiliate referral URL}. Your commission rate is {Affiliate rate}. Log in to your affiliate dashboard to see your results.

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.
- Set the trigger and every action to Live.
- Click Save.

Step 6: Test it
Approve a pending test affiliate in AffiliateWP → Affiliates. The email should arrive within a minute. Open Zapify → Logs to confirm the run and read what the action reported.
Tokens you can use
The trigger offers the affiliate's details, one extra token for the old status, plus the user tokens.
| Token | What it holds |
|---|---|
| Affiliate ID | The affiliate's numeric ID in AffiliateWP. |
| Affiliate status | Their status: active, inactive, pending or rejected. |
| Affiliate referral URL | Their personal referral link, ready to put in an email. |
| Affiliate payment email | The address they get paid at. |
| Affiliate rate / Affiliate rate type | Their commission rate and whether it is a percentage or a flat amount. |
| Affiliate earnings / Affiliate unpaid earnings | What they have earned in total, and what is still waiting to be paid. |
| Affiliate previous status | The status they had before the change. |
| User ID / Username / User email | The user the automation runs for: the affiliate, or the referred customer when Run for is set to the customer. |
| Display name / First name / Last name | Their name details. |
Conclusion
With the An affiliate's status changes trigger on Active and the Send an email action, approval comes with a message that gets people started. To tell applicants who are turned down, see the rejection email, and to give approved affiliates a WordPress role, see adding a role on approval.
FAQs
Is this free in Zapify?
The Send an email action is free, but the AffiliateWP trigger is part of the AffiliateWP PRO integration and needs an active Zapify PRO licence.
Will the affiliate also get AffiliateWP's own approval email?
Yes, unless you turn that notification off in AffiliateWP's email settings. Turn it off if you want yours to be the only one.
Does it run once per approval?
Yes. Setting a status an affiliate already has is not a change, so it does not start the automation a second time.
How do I send this to affiliates who were approved automatically?
Those never change status, so use the welcome email, which runs for every sign-up.
Do I need to write any code?
No. Everything is configured visually in the Zapify builder.