Created
October 23, 2019 10:18
-
-
Save Rubsel/2adc5df1864177a231f65466df0f02ac to your computer and use it in GitHub Desktop.
Get ACF field groups from parent.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment