PluginProbe
AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI / 6.0.3
AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI v6.0.3
6.0.3 6.0.2 6.0.1 6.0.0 5.8.6 5.8.5 5.8.4 5.8.3 5.8.2 5.8.1 5.8.0 5.7.9.2 5.7.9.1 5.7.8 5.7.9 5.7.6 5.7.7 5.7.5 5.7.4 5.7.3 5.7.2 5.7.1 trunk 5.6.0 5.6.1 All 34 releases
← All changes | integrations/wp-all-import/includes/functions.php +40 -0 5.7.4 → 6.0.3 View file →
@@ -1,0 +1,40 @@
1 +<?php
2 +/**
3 + * Functions
4 + *
5 + * @package AutomatorWP\Integrations\WP_All_Import\Includes\Functions
6 + * @since 1.0.0
7 + */
8 +// Exit if accessed directly
9 +if( !defined( 'ABSPATH' ) ) exit;
10 +
11 +/**
12 + * Get history data for tags
13 + *
14 + * @since 1.0.0
15 + *
16 + * @return array|false
17 + */
18 +function automatorwp_wp_all_import_get_services( $import_id ) {
19 +
20 + global $wpdb;
21 + $history_data = array( );
22 +
23 + $results = $wpdb->get_results( "SELECT * FROM {$wpdb->prefix}pmxi_history WHERE import_id = {$import_id} ORDER BY id DESC LIMIT 1" );
24 +
25 + foreach ( $results as $history ){
26 +
27 + $history_data[] = array(
28 + 'id' => $history->id,
29 + 'type' => $history->type,
30 + 'time_run' => $history->time_run,
31 + 'date' => $history->date,
32 + 'summary' => $history->summary
33 + );
34 +
35 + }
36 +
37 + return $history_data;
38 +
39 +}
40 +