Skip to content

Commit

Permalink
acf json
Browse files Browse the repository at this point in the history
  • Loading branch information
jasperf committed Dec 2, 2024
1 parent 484300e commit b753665
Show file tree
Hide file tree
Showing 3 changed files with 486 additions and 0 deletions.
17 changes: 17 additions & 0 deletions site/web/app/themes/nynaeve/app/filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,20 @@
add_filter('excerpt_more', function () {
return sprintf(' &hellip; <a href="%s">%s</a>', get_permalink(), __('Continued', 'sage'));
});

/**
* Remove the default widgets editor depenedencies check.
*
* @return void
*/
remove_filter('admin_head', 'wp_check_widget_editor_deps');

/**
* Set ACF JSON Save Path Location
*
* @return string
*/
function my_acf_json_save_point($path) {
return get_stylesheet_directory() . '/resources/acf-json';
}
add_filter('acf/settings/save_json', __NAMESPACE__ . '\\my_acf_json_save_point');
Loading

0 comments on commit b753665

Please sign in to comment.