Instantly share code, notes, and snippets.

Embed
What would you like to do?
acf/settings/load_json filter
<?php
add_filter('acf/settings/load_json', 'my_acf_json_load_point');
function my_acf_json_load_point( $paths ) {
// remove original path (optional)
unset($paths[0]);
// append path
$paths[] = get_stylesheet_directory() . '/my-custom-folder';
// return
return $paths;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment