I am having issues loading my custom fields from my local .json file within my plugin, Saving the fields work fine but the loading does work for my other field groups, am I missing something?
// ********** JSON File Path Save ACF Fields (this works fine!) **********
add_filter('acf/settings/save_json', 'my_acf_json_save_point');
function my_acf_json_save_point( $path ) {
// update path HAVING ISSUES!!!
$path = plugin_dir_path( __FILE__ ) . 'includes/acf/acf-json';
// return
return $path;
}
// ********** JSON File Path Load ACF Fields (this does not work??? ) **********
add_filter('acf/settings/load_json', 'my_acf_json_load_point');
function my_acf_json_load_point( $paths ) {
// Remove original path
unset( $paths[0] );// Append our new path
$paths[] = plugin_dir_path( __FILE__ ) . 'includes/acf/acf-json';
return $paths;
}