vena / acf-json
Force ACF to store and load json for specific groups inside a plugin or theme.
Installs: 46
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/vena/acf-json
Requires (Dev)
README
Force ACF to store and load json for specific groups in a specific place, useful for plugins and themes which define their own ACF groups.
Installing
composer require vena/acf-json
Using
Assuming you're using composer's autoload, setup is simple.
$acfJson = new \vena\AcfJson\Loader( [ // Group IDs to store and load 'group_61240bc1afe31', 'group_612524d9ef624', ], // Path under which to create acf-json folder // and store ACF's json for the groups __DIR__ );