Skip to content

AffiliateWP Automations

How to Automatically Make Every New WordPress User an AffiliateWP Affiliate

If everyone who joins your site is a potential promoter, such as in a creator community or membership, a separate affiliate sign-up form only adds friction. To make every new WordPress user an AffiliateWP affiliate, use Zapify's free A user registers trigger with the Make the user an affiliate action. AffiliateWP is a Zapify PRO integration.

What this automation does

The automation is one trigger plus one action:

  • Trigger: A user registers (WP_USER_REGISTERS, WordPress)
  • Action: Make the user an affiliate (AFFWP_CREATE_AFFILIATE, AffiliateWP)

Whenever a new account is created, Zapify makes that person an affiliate, either active straight away or pending your approval.

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.

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 Enrol new users as affiliates.

Create a new automation

Step 2: Add the "A user registers" trigger

  1. Click Add Trigger.

Add a trigger

  1. Choose WordPress as the app.

Select WordPress as the trigger

  1. Select A user registers.

Select A user registers

Step 3: Add the "Make the user an affiliate" action

  1. Click Add Action.

Add an action

  1. Choose AffiliateWP as the app.

Select AffiliateWP as the action

  1. Select Make the user an affiliate.

Select Make the user an affiliate

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 to act on somebody else.
Status Yes Active approves them straight away. Pending approval puts them in your approval queue.
Rate No A commission rate for this affiliate. Leave empty to use your program's default.
Rate type No Program default, Percentage (%) or Flat amount. A percentage must be between 0 and 100.
Payment email No Where they get paid. Leave empty to use the user's own email address.
Notes No Private notes on the affiliate, shown to admins only.

Set Status to Pending approval if you want to review each person, or Active to approve everyone. Leave User empty so the new user is the affiliate. Leave Payment email empty to use their account email.

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

Register a test account and check AffiliateWP → Affiliates. Zapify → Logs shows the run.

Tokens you can use

Token What it holds
User ID / Username / User email The new account.
Display name / First name / Last name / User role Name and role.
Registration date When they registered.

The action makes two tokens available to later actions: Affiliate ID and Affiliate referral URL. If the user is already an affiliate, the action succeeds and changes nothing, so a retry never turns into an error.

Conclusion

With the free A user registers trigger and the Make the user an affiliate action, joining the site is joining the program. To be told about each new application, see emailing when an affiliate is waiting for approval.

FAQs

Is this free in Zapify?

The A user registers trigger is free, but the AffiliateWP action is part of the AffiliateWP PRO integration and needs an active Zapify PRO licence.

Should I approve everyone automatically?

Only if you can afford the risk. Pending status lets you check for spam or fraud before anyone earns commission.

Does it affect existing users?

No. It only runs for accounts created after you turn it on.

Do I need to write any code?

No. Everything is configured visually in the Zapify builder.

Was this page helpful?