helsingborg-stad/acf-export-manager

ACF Export Manager is a extension that let's you automatically export specified your ACF fields on save.

Maintainers

👁 sebastianthulin

Package info

github.com/helsingborg-stad/acf-export-manager

pkg:composer/helsingborg-stad/acf-export-manager

Statistics

Installs: 59 701

Dependents: 45

Suggesters: 1

Stars: 1

Open Issues: 0

1.0.12 2023-05-25 07:56 UTC

Requires

None

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 9e1b282460cebf68ec4d83cd3c11d8fe7e3612fd

  • Kristoffer Svanmark <kristoffer.svanmark.woop@knowit.se>

This package is auto-updated.

Last update: 2026-06-25 14:16:39 UTC


README

ACF Export Manager is a extension that let's you automatically export specified your ACF fields on save.

Setting it up

1. Require and initialize the class

require_once 'path/to/AcfExportManager.php';
$acfExportManager = new HelsingborgsStad\AcfExportManager();

2. Set destination folder for export files

Make sure your destination folder is created and that the webserver has write permissions to it.

$acfExportManager->setExportFolder('path/to/destination/folder');

3. Set which fieldgroups that should be auto exported

If array item key is specified the key will be used as filename(s) for the exported file(s). If no item key isset the name of the fieldgroup will be used as filename(s).

$acfExportManager->autoExport(array(
 'group_58b6e40e5a8f4',
 'halloj' => 'group_58b80e0111556'
));

4. Import exported fieldgroups

$acfExportManager->import();

Field translations

ACF Export Manager also simifies the translation process of you fields. If you wold like the translation ability for your fields you need to specify a textdomain for your exports, like this:

$acfExportManager->setTextdomain('my-text-domain');