-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #270 from wikitongues/staging
prod deploy
- Loading branch information
Showing
16 changed files
with
598 additions
and
230 deletions.
There are no files selected for viewing
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
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
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
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
13 changes: 13 additions & 0 deletions
13
wp-content/themes/blankslate-child/includes/acf-helpers.php
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
// Set the save path for ACF JSON files. | ||
add_filter('acf/settings/save_json', function ($path) { | ||
// Save JSON files to a folder in your theme. | ||
return get_stylesheet_directory() . '/acf-json'; | ||
}); | ||
|
||
// Set the load path for ACF JSON files. | ||
add_filter('acf/settings/load_json', function ($paths) { | ||
// Append the JSON folder in your theme to the load paths. | ||
$paths[] = get_stylesheet_directory() . '/acf-json'; | ||
return $paths; | ||
}); |
Oops, something went wrong.