# automatorwp/5.8.6/integrations/eventin/includes/functions.php

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

- Page: https://pluginprobe.com/plugins/automatorwp/5.8.6/code/integrations/eventin/includes/functions.php
- Raw: https://pluginprobe.com/plugins/automatorwp/5.8.6/raw/integrations/eventin/includes/functions.php
- Modified: 2026-08-26T10:15:00+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/5.8.6/code/integrations/eventin/includes/functions.php#L10-L20`.

```php
<?php
/**
 * Functions
 *
 * @package     AutomatorWP\Integrations\Amelia\Includes\Functions
 * @since       1.0.0
 */
// Exit if accessed directly
if( !defined( 'ABSPATH' ) ) exit;

/**
 * Get Amelia services
 *
 * @since 1.0.0
 * 
 * @param int $order_id
 *
 * @return array|false
 */
function automatorwp_eventin_get_order_data( $order_id ) {

    // Empty title if no ID provided
    if( absint( $order_id ) === 0 ) {
        return false;
    }

    // Get the data related to order
    $order_metas = get_post_meta( $order_id );
    $order_data = array();

    if (!empty($order_metas)) {
        foreach ($order_metas as $meta_key => $meta_value) {
            $order_data[$meta_key] = $meta_value[0];
        }
    }

    return $order_data;

}

```
