<?php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

if (
  class_exists('WC_Integration') &&
  defined('WOOCOMMERCE_VERSION') &&
  version_compare(WOOCOMMERCE_VERSION, '2.1-beta-1', '>=')
) {
  // Register the integration.
  add_filter('woocommerce_integrations', add_integration);
} else {
  add_action('admin_notices', [$this, 'woocommerce_missing_notice']);
}

function add_integration()
{
  $integrations[] = 'WC_AddressZen';
  return $integrations;
}
