WP Manifestindependent plugin directory
manifest / developer / acf-local-json-manager

ACF Local JSON Manager

Manages plugins/themes that use ACF Local JSON

by khromov · github.com/khromov/acf-local-json-manager

54stars
6forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/khromov/acf-local-json-manager/archive/refs/heads/master.zip

Declares an update source (khromov/acf-local-json-manager), so updates arrive through the plugin's own updater.

From the readme

ACF Local JSON Manager Manages plugins and themes that use ACF Local JSON. Are you working multiple plugins and themes that utilize ACF Local JSON? Since Local JSON files can only save in one place, there is an issue if multiple plugins/themes try to hook on acf/settings/savejson. (Any field groups that you edit will be saved to the last plugin that hooks on the filter.) That's the problem ACF Local JSON Manager tries to solve. With ACF Local JSON Manager you can select which plugin or theme the Local JSON files should be saved to from the comfort of the admin bar. Adding support for ACF Local JSON Manager You have to add a filter in order to make your plugin/theme compatible with the ACF Local JSON Manager. The snippet looks like this: The hook aljmsavejson provides you with a key/value array $folders that lists all the folders currently registered in the manager. The array key is your plugin or theme name and the value is the path to the folder. Adding support to an existing plugin or theme If your code currently looks like this: Simply add the aljmsavejson hook underneath it and your code will be compatible with the ACF Local JSON Manager, but it will also continue

Read the full README on GitHub →

Releases

TagPublished
1.2 Jun 21, 2016

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.