Last active
October 8, 2019 13:54
-
-
Save vanaf1979/b6d324f7a1ba34b0eb3bfe49123325a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function acf_json_directory( string $path ) : string { | |
return get_template_directory() . '/my-custom-folder'; | |
} | |
add_filter( 'acf/settings/save_json' , 'acf_json_directory' ); | |
?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment