Skip to content

Commit

Permalink
fix: admin init only
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Thulin committed Jan 23, 2025
1 parent b8a9420 commit b0269e7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function __construct(

public function addHooks(): void
{
$this->wpService->addAction('init', [$this, 'disableFieldGroups']);
$this->wpService->addAction('admin_init', [$this, 'disableFieldGroups']);
}

/**
Expand Down

0 comments on commit b0269e7

Please sign in to comment.