This guide shows you how to add a WP Map Block Create Map action to a Zaplane workflow, so a new map is created automatically whenever your trigger fires. Make sure the WP Map Block 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 editor.
Before adding a WP Map Block action, you need to set up a trigger first. Here is how to do it quickly:
Once your trigger is saved, proceed to the next step to add the WP Map Block action.
Step 2: Add an Action
Click the + button next to your trigger. In the Add Action panel, choose Apps.
Step 3: Select the WP Map Block App
Find WP Map Block in the app list, select it, and click Continue.
Step 4: Choose the Action Type
On the Select tab, open the Action Type dropdown and pick what you want WP Map Block to do. Several action types are available. In this example we choose Create Map. Then click Continue.
Step 5: Configure the Action
On the Configure tab, enter a Map Title (required). You can also choose a Start From option and a Map Provider, and set the Centre Latitude, Centre Longitude, and Zoom Level. Click Continue when you are done.
Step 6: Test the Action
On the Test tab, click Test Action to check that WP Map Block responds as expected, then click Save.
Step 7: Update and Activate the Workflow
Back in the workflow editor, set the workflow status to Active and click Update to publish your changes. You can use Logs to review every run.
Every time your trigger fires, Zaplane now creates a new map in WP Map Block automatically.
Done!
WP Map Block is now connected to your workflow, and the Create Map action will run automatically whenever your trigger fires.
