Skip to content

Commit

Permalink
Make sure Fields class is loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
doekenorg committed Oct 14, 2024
1 parent c7f1242 commit 9209561
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Addon/GravityExportAddon.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace GFExcel\Addon;

use GFCommon;
use GFExcel\Action\ActionAware;
use GFExcel\Action\ActionAwareInterface;
use GFExcel\Action\DownloadUrlResetAction;
Expand Down Expand Up @@ -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 );
Expand Down

0 comments on commit 9209561

Please sign in to comment.