Active |
---|
This application does not need additional settings. So you can make connection only by using your login credentials or by following the instructions below. |
The WP All Import integrator. Designed to work with data inside the application.']module[/tooltip]s allow you to watch the new import and export from your WP All Import account.
Prerequisites
- A WP All Import account – create an account at wpallimport.com/.
The module dialog fields that are displayed in bold (in the Boost.space Integrator scenario, not in this documentation article) are mandatory!
- 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.
See the Setting Up WP All Import Webhooks to add webhooks in your WP All Import account.
Triggers when a new import has been processed.
Webhook Name |
Enter a name for the webhook. |
Do you need help with something specific regarding WP All Import?
We are here for you.
Get support on the road to success from real experts.
We will help you set up your business processes, create connections from your current IT stack, and set up data analysis.
Get in touch