ACF Export Manager is a extension that let's you automatically export specified your ACF fields on save.
ACF Export Manager is a extension that let's you automatically export specified your ACF fields on save., (*1)
1. Require and initialize the class, (*2)
require_once 'path/to/AcfExportManager.php'; $acfExportManager = new HelsingborgsStad\AcfExportManager();
2. Set destination folder for export files, (*3)
Make sure your destination folder is created and that the webserver has write permissions to it., (*4)
$acfExportManager->setExportFolder('path/to/destination/folder');
3. Set which fieldgroups that should be auto exported, (*5)
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)., (*6)
$acfExportManager->autoExport(array( 'group_58b6e40e5a8f4', 'halloj' => 'group_58b80e0111556' ));
4. Import exported fieldgroups, (*7)
$acfExportManager->import();
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:, (*8)
$acfExportManager->setTextdomain('my-text-domain');