Rubsel
10/23/2019 - 10:18 AM

Get ACF field groups from parent.

Get ACF field groups from parent.

<?php 

add_filter('acf/settings/load_json', 'parent_theme_acf_load');

function parent_theme_acf_load($paths) {
  // Locate the parent template directory 
  $path = get_template_directory().'/acf-json';
  $paths[] = $path;
  
  return $paths;
}