From c3db098019eb1a71d83070f6f1cde822241a2b5f Mon Sep 17 00:00:00 2001 From: Serena Date: Mon, 18 Nov 2024 10:11:14 +0000 Subject: [PATCH] Fix missed ACF Fatal error --- .../themes/dxw-security-2017/app/Posts/CustomFields.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-content/themes/dxw-security-2017/app/Posts/CustomFields.php b/wp-content/themes/dxw-security-2017/app/Posts/CustomFields.php index a05defa..c89e94c 100644 --- a/wp-content/themes/dxw-security-2017/app/Posts/CustomFields.php +++ b/wp-content/themes/dxw-security-2017/app/Posts/CustomFields.php @@ -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',