Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

acf filters for json save point #10

Open
v3nt opened this issue Sep 5, 2019 · 0 comments
Open

acf filters for json save point #10

v3nt opened this issue Sep 5, 2019 · 0 comments

Comments

@v3nt
Copy link

v3nt commented Sep 5, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant