Active |
---|
This application does not need additional settings. So you can make connectionUnique, active service acces point to a network. There are different types of connections (API key, Oauth…). More only by using your login credentials or by following the instructions below . |
With WP All Import modulesThe module is an application or tool within the Boost.space system. The entire system is built on this concept of modularity. (module - Contacts) More in Boost.spaceCentralization and synchronization platform, where you can organize and manage your data. More IntegratorPart of the Boost.space system, where you can create your connections and automate your processes. More, you can watch for new imports and exports.
To use the WP All Import modules, you must have a WP All Import account. You can create an account at wpallimport.com. You must also have a WordPress account with WP All Import and WP All Export plugins.
-
Log in to your Boost.space Integrator account, add one of the WP All Import
instant
modules to your scenarioA specific connection between applications in which data can be transferred. Two types of scenarios: active/inactive. More, and click Create a webhookA webhook is a way for an app to send real-time information to a specific URL in response to certain events or triggers.. -
Optional: Enter a name for the webhook in the Webhook name field.
-
Click Save > Copy address to clipboard.
-
Log in to your WordPress account.
-
Depending on the
instant
moduleThe module is an application or tool within the Boost.space system. The entire system is built on this concept of modularity. (module - Contacts) More you chose in Step 1, click on either the All Import or All Export plugin > Settings. -
Depending on the plugin you are using, paste the relevant functionFunctions you can use in Boost.space Integrator - create, update, delete, get, search. in the Function Editor field.
All Import
<?php
function after_import($import_id, $import)
{
global $wpdb;
$table = $wpdb->prefix . "pmxi_imports";
// Retrieve the import data from the database
$import_data = $wpdb->get_row($wpdb->prepare("SELECT * FROM `$table` WHERE `id` = %d", $import_id), ARRAY_A);
// Check if the import data was found
if ($import_data) {
// Check if the 'options' field is set and unserialize it
if (isset($import_data['options'])) {
$import_data['options'] = unserialize($import_data['options']);
}
}
// Define the HTTP request arguments
$args = array(
'timeout' => 5,
'redirection' => 5,
'httpversion' => '1.0',
'blocking' => true,
'headers' => array(),
'cookies' => array(),
'body' => $import_data,
);
// 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);
?>
All Export
<?php
function after_export($export_id, $export)
{
// Check whether "Secure Mode" is enabled in All Export -> Settings
$is_secure_export = PMXE_Plugin::getInstance()->getOption('secure');
if (!$is_secure_export) {
$filepath = get_attached_file($export->attch_id);
} else {
$filepath = wp_all_export_get_absolute_path($export->options['filepath']);
}
$wp_uploads = wp_upload_dir();
$fileurl = str_replace($wp_uploads['basedir'], $wp_uploads['baseurl'], $filepath);
$body = (array) $export;
// Add export file details to the body if the file exists
if (file_exists($filepath))
{
$body['export_file_url'] = $fileurl;
$body['file_name'] = basename($filepath);
$body['file_type'] = wp_all_export_get_export_format($export->options);
$body['export_trigger_type'] = empty($_GET['export_key']) ? 'manual' : 'cron';
}
// Define the HTTP request arguments
$args = array(
'method'=> 'POST',
'body'=> $body,
'timeout' => 5,
'redirection' => 5,
'httpversion' => '1.0',
'blocking'=> true,
'headers'=> array(),
'cookies'=> array(),
);
// Sends export data to the webhook URL specified
wp_remote_post("https://hook.make.com/<webhook_id>", $args);
}
add_action('pmxe_after_export', 'after_export', 10, 2);
?>
-
Locate the
wp_remote_post("https://hook.make.com/<webhook_id>", $args);
line in the function you pasted and replacehttps://hook.make.com/<webhook_id>
with the address copied in Step 3. -
Click Save FunctionsFunctions you can use in Boost.space Integrator - create, update, delete, get, search..
WP All Import will now send data to Boost.space Integrator through the webhook when the selected event occurs.
You can perform the following actions with WP All Import modules:
TriggersEvery scenario has a trigger, an event that starts your scenario. A scenario must have a trigger. There can only be one trigger for each scenario. When you create a new scenario, the first module you choose is your trigger for that scenario. Create a trigger by clicking on the empty module of a newly created scenario or moving the...
-
Watch New Import
-
Watch New Export