Skip to content

Commit

Permalink
Merge pull request #269 from wikitongues/main
Browse files Browse the repository at this point in the history
Staging Deploy - Test ACF
  • Loading branch information
FredericoAndrade authored Dec 6, 2024
2 parents bf1be10 + 978c130 commit 0854c83
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,26 @@
"toolbar": "full",
"media_upload": 1,
"delay": 0
},
{
"key": "field_6752e4ae660ec",
"label": "test",
"name": "test",
"aria-label": "",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"maxlength": "",
"placeholder": "",
"prepend": "",
"append": ""
}
],
"location": [
Expand All @@ -402,5 +422,5 @@
"active": true,
"description": "",
"show_in_rest": 0,
"modified": 1733430987
"modified": 1733485746
}
1 change: 1 addition & 0 deletions wp-content/themes/blankslate-child/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
require_once('includes/batch-operations.php');
require_once('includes/admin-helpers.php');
require_once('includes/events-filter.php');
require_once('includes/acf-helpers.php');
13 changes: 13 additions & 0 deletions wp-content/themes/blankslate-child/includes/acf-helpers.php
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;
});

0 comments on commit 0854c83

Please sign in to comment.