Skip to content

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

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

  1. 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.

  2. Log in to your WP All Import account.

  3. Click All Import > Settings.

  4. 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);

    ?>

  5. 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.

  6. 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.