Home › Forums › General Issues › get_field returning null after update › Reply To: get_field returning null after update
You have your JSON load point set as
add_filter('acf/settings/load_json', 'ben_wf_acf_json_load_point');
function ben_wf_acf_json_load_point( $paths ) {
// remove original path (optional)
unset($paths[0]);
// append path
$paths[] = BENWF_PLUGIN_PATH . 'acf-config';
// return
return $paths;
}
by using unset($paths[0]);
only the json files from your plugin will be loaded. If you want to add an addional load point then you need to remove that.
Also by changing the save point you are changing the save point for every field group to be saved into your plugin folder.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.