From 9209561bb47a75bacf521a2020ac56dd74f0ecd5 Mon Sep 17 00:00:00 2001 From: Doeke Norg Date: Mon, 14 Oct 2024 13:16:24 +0200 Subject: [PATCH] Make sure Fields class is loaded --- src/Addon/GravityExportAddon.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Addon/GravityExportAddon.php b/src/Addon/GravityExportAddon.php index e98297b..47b2639 100644 --- a/src/Addon/GravityExportAddon.php +++ b/src/Addon/GravityExportAddon.php @@ -2,6 +2,7 @@ namespace GFExcel\Addon; +use GFCommon; use GFExcel\Action\ActionAware; use GFExcel\Action\ActionAwareInterface; use GFExcel\Action\DownloadUrlResetAction; @@ -167,6 +168,8 @@ public function init_admin(): void { * @since 2.0.0 */ public function feed_settings_fields(): array { + require_once GFCommon::get_base_path() . '/includes/settings/class-fields.php'; + // Register custom fields first. Fields::register( 'download_file', DownloadFile::class ); Fields::register( 'download_url', DownloadUrl::class );