# automatorwp/6.0.0/integrations/wp-all-import/includes/functions.php

AutomatorWP – No-Code Workflow Automation, Integration &amp; Webhooks Plugin, now with AI, version 6.0.0. 41 lines.

- Page: https://pluginprobe.com/plugins/automatorwp/6.0.0/code/integrations/wp-all-import/includes/functions.php
- Raw: https://pluginprobe.com/plugins/automatorwp/6.0.0/raw/integrations/wp-all-import/includes/functions.php
- Modified: 2026-08-31T06:40:04+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/automatorwp/6.0.0/code/integrations/wp-all-import/includes/functions.php#L10-L20`.

```php
<?php
/**
 * Functions
 *
 * @package     AutomatorWP\Integrations\WP_All_Import\Includes\Functions
 * @since       1.0.0
 */
// Exit if accessed directly
if( !defined( 'ABSPATH' ) ) exit;

/**
 * Get history data for tags
 *
 * @since 1.0.0
 *
 * @return array|false
 */
function automatorwp_wp_all_import_get_services( $import_id ) {

    global $wpdb;
    $history_data = array( );

    $results = $wpdb->get_results( "SELECT * FROM {$wpdb->prefix}pmxi_history WHERE import_id = {$import_id} ORDER BY id DESC LIMIT 1" );

    foreach ( $results as $history ){   

        $history_data[] = array(
            'id'        => $history->id,
            'type'      => $history->type,
            'time_run'  => $history->time_run,
            'date'      => $history->date,
            'summary'   => $history->summary
        );         

    }

    return $history_data;

}


```
