Skip to content

Commit

Permalink
Merge pull request #649 from dxw/fix/check-if-acf-function-exists
Browse files Browse the repository at this point in the history
Fix missed ACF Fatal error
  • Loading branch information
serena-piccioni authored Nov 18, 2024
2 parents 50bd625 + c3db098 commit a2dbd81
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,10 @@ public function addPageTemplatesFields()

public function addHomePageFields()
{
if (!function_exists('acf_add_local_field_group')) {
return;
}

acf_add_local_field_group([
'key' => 'group_5971ca59db830',
'title' => 'Homepage services',
Expand Down

0 comments on commit a2dbd81

Please sign in to comment.