WP All Import¶
The WP All Import modules allow you to watch the new import and export from your WP All Import account.
Getting Started with WP All Import¶
Prerequisites
- A WP All Import account - create an account at wpallimport.com/.
The module dialog fields that are displayed in bold (in the Ibexa Connect scenario, not in this documentation article) are mandatory!
Setting Up WP All Import Webhooks¶
-
Open any Watch module, enter a name for the webhook, click Save, and copy the URL address to your clipboard. Click OK and save the trigger.
-
Log in to your WP All Import account.
-
Click All Import > Settings.
-
In the Function Editor field, enter the following code.
<?php
function after_import($import_id, $import)
{
//
$body = array($import);
$args = array(
'timeout' => '5',
'redirection' => '5',
'httpversion' => '1.0',
'blocking' => true,
'headers' => array(),
'cookies' => array(),
);
// Sends import data to the webhook URL specified.
wp_remote_post("https://hook.make.com/<webhook_id>", $args);
}
add_action('pmxi_after_xml_import', 'after_import', 10, 2);
?>
-
Replace https://hook.make.com/<webhook_id> in the wp_remote_post("https://hook.make.com/<webhook_id>", $args); with the URL address copied in step 1.
-
Click Save Changes.
You have successfully added the webhooks.
Triggers¶
See the Setting Up WP All Import Webhooks to add webhooks in your WP All Import account.
Watch New Import¶
Triggers when a new import has been processed.
Webhook Name | Enter a name for the webhook. |
Watch New Export¶
Triggers when a new export has been processed.
Webhook Name | Enter a name for the webhook. |