Skip to content

Commit

Permalink
allow for ACF fields to be manually imported
Browse files Browse the repository at this point in the history
  • Loading branch information
tankadesign committed Aug 13, 2021
1 parent 9051983 commit cd8f955
Show file tree
Hide file tree
Showing 3 changed files with 2,189 additions and 2,192 deletions.
11 changes: 1 addition & 10 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,7 @@
//

function bbi2020_include_acf_init () {
$devHosts = ['localhost', 'tankanyc.com'];
$isDev = false;
array_map(function ($host) use(&$isDev) {
if(strpos($_SERVER['HTTP_HOST'], $host) !== false) {
$isDev = true;
}
}, $devHosts);
if(!$isDev) {
require_once ('inc/init-custom-fields.php');
}
require_once ('inc/init-custom-fields.php');
}

bbi2020_include_acf_init();
Expand Down
Loading

0 comments on commit cd8f955

Please sign in to comment.