Skip to content

Commit

Permalink
fix(plugin): Fix error when ACF is deactivated (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
huubl committed Jul 28, 2023
1 parent a6a892d commit 94e662e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ public function __invoke()
require_once $composer;
}

if (! class_exists('acf_field')) {
return;
}

$this->register();

if (defined('ACP_FILE')) {
Expand Down

0 comments on commit 94e662e

Please sign in to comment.