acf filters for json save point
v3nt opened this issue · 0 comments
v3nt commented
Hello - is there any reason why this won't work in the Structure/ACF/settings.php file?
add_filter('acf/settings/save_json', 'Tonik\Theme\App\Structure\ACF\my_acf_json_save_point');
function my_acf_json_save_point( $path ) {
// update path
$path = get_stylesheet_directory() . '/resources/assets/acf-json';
//this works
file_put_contents($path.'/test.txt', $path);
// return
return $path;
}
thanks