From 5df7b59d3966268c497cde8cc203989b061f84f6 Mon Sep 17 00:00:00 2001
From: Pau Pulido <pau@codeccoop.org>
Date: Tue, 9 Jan 2024 13:21:06 +0100
Subject: [PATCH] Update file index.php

---
 includes/fields/iban/index.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/includes/fields/iban/index.php b/includes/fields/iban/index.php
index b6e92ae..e948e62 100644
--- a/includes/fields/iban/index.php
+++ b/includes/fields/iban/index.php
@@ -4,14 +4,14 @@ if (!defined('ABSPATH')) {
     exit;
 }
 
-require_once 'Addon.php';
-require_once 'Field.php';
-
 define('WPCT_CRM_FORMS_IBAN_FIELD', '1.0');
 add_action('gform_loaded', 'wpct_crm_forms_load_iban_field', 5);
 function wpct_crm_forms_load_iban_field()
 {
     if (!method_exists('GFForms', 'include_addon_framework')) return;
+    require_once 'Addon.php';
+    require_once 'Field.php';
+
 
     GFAddOn::register(\WPCT_CRM_FORMS\IBAN_Field\Addon::class);
 }
-- 
GitLab