Dokan

This guide shows how to start a Zaplane workflow whenever something happens in Dokan, such as a vendor being enabled. Make sure the Dokan plugin is installed and active on your site before you begin.

Step 1: Create a Workflow

Go to Zaplane > Workflows from your WordPress dashboard, then click Create Workflow to open the workflow builder.
Create a Workflow

Step 2: Add the Dokan Trigger

Click the Select an app trigger node on the canvas. In the Add Trigger panel, choose Apps, then select Dokan from the app list and click Continue.
Add the Dokan Trigger Dokan

Step 3: Choose the Trigger Type

Open the Trigger Type dropdown and pick the event that should start your workflow. Dokan offers several trigger types, such as vendor and withdrawal request events. Here we use Vendor Enabled. Click Continue.
Choose the Trigger Type

Step 4: Configure the Trigger

On the Configure tab, open the Vendor dropdown (required) and choose which vendor the trigger should watch. Select Any Vendor, or pick a specific vendor from the list. Click Continue.
Configure the Trigger

Step 5: Test and Activate the Workflow

On the Test tab, click Test Trigger to check that Zaplane can receive Dokan data, then click Save.
Test and Activate the Workflow
Your trigger node now shows Vendor Enabled. Set the workflow status to Active, then click Update in the top-right corner to save and activate the workflow. 
Update in the top-right corner to save and activate

Done!

Dokan is now connected to Zaplane. From now on, every time a vendor is enabled, your workflow runs automatically.