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…). only by using your login credentials or by following the instructions below . |
With WP All Import modulesa module is an application or tool designed to handle specific business functions, such as CRM, project management, or inventory. The system's modular architecture allows you to activate only the modules you need, enabling customization and scalability as your business requirements evolve. in Boost.spaceA platform that centralizes and synchronizes company data from internal and external sources, offering a suite of modules and addons for project management, CRM, data visualization, and more. Has many features to optimize your workflow! IntegratorPart of the Boost.space system, where you can create your connections and automate your processes., 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., 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
modulea module is an application or tool designed to handle specific business functions, such as CRM, project management, or inventory. The system's modular architecture allows you to activate only the modules you need, enabling customization and scalability as your business requirements evolve. 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.
Build WP All Import ScenariosA specific connection between applications in which data can be transferred. Two types of scenarios: active/inactive.
You can perform the following actions with WP All Import modules:
TriggersThe initial event that starts a scenario. It can be an action, a scheduled time, or a custom event, and is essential to define at the beginning of each scenario.
-
Watch New Import
-
Watch New Export