Created
February 12, 2018 04:39
-
-
Save buiquangduc/90854ab3d19e1fc6b5b29e984db8a271 to your computer and use it in GitHub Desktop.
acf/settings/load_json filter
This file contains hidden or 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 | |
| add_filter('acf/settings/load_json', 'my_acf_json_load_point'); | |
| function my_acf_json_load_point( $paths ) { | |
| // remove original path (optional) | |
| unset($paths[0]); | |
| // append path | |
| $paths[] = get_stylesheet_directory() . '/my-custom-folder'; | |
| // return | |
| return $paths; | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment