ACF local JSON locator WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA
WordPress plugin to specify the location of ACF local JSON files.
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/jbarke/acf-json-locator/archive/refs/heads/main.zip“ACF local JSON locator” allows a user to specify the save and load points for Advanced Custom Fields local JSON files. By default, the plugin will set the save and load path to wp-content/acf-json, but any writable location on disk could be used.
Description
Requires Advanced Custom Fields (ACF) version 5+.
Local JSON is a featured added in ACF version 5 that stores ACF settings in JSON files. This not only provides a performance boost, but it allows storing field settings in version control (which one defintely wants; code goes up, content goes down).
ACF stores the local JSON in the active theme directory by default, but I believe the data model should be independent of the theme (it makes changing themes that much easier). This plugin changes the save and load point for the local ACF to be wp-content/acf-json (or any writable location on disk a user specifies).
There is a similar plugin out there that sets the save and load point to the wp-content/uploads directory, but that directory should not be versioned, defeating one of the primary points of using local JSON in the first point.
Links
Installation
- Ensure Advanced Custom Fields or Advanced Custom Fields Pro is installed.
- Upload the plugin files to the
wp-content/plugins/acf-json-locatordirectory or install the plugin through the WordPress plugins screen directly. - Activate the plugin from the “Plugins” page.
- Update all the field groups to generate JSON files.
Releases
4 releases.
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.