Wordpress Plugin: Automatically Export Field Groups to PHP on Save/Update for Advanced Custom Fields
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
acf-json
fields
json
lib
.gitignore
LICENCE.txt
README.md
_config.yml
acf-auto-php-export.php
index.php
readme.txt

README.md

ACF Auto PHP Export

Contributors: blizzrdof77 Donate link: https://payments.itssimpledigital.com/ Tags: acf, advanced custom fields, add-on, advanced custom fields pro, php, json, import, export Requires at least: 3.7 Tested up to: 4.4.2 Stable tag: 0.1.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html

Automatically Export ACF Field Groups to PHP on Save/Update.

Description

This plugin requires the Advanced Custom Fields Pro plugin to be present and activated.

The purpose of this plugin is to avoid the tedious process of manually exporting ACF field groups to PHP. Upon saving/updating a field group in the ACF editor view, a PHP export of the field will automatically be generated and saved to a directory.

The exports will be created in a folder called "acf/fields" in the active theme directory. To change this, you can define the constant in your wp-config.php file - like this:

`/** Directory is relative to theme root */`
`define('ACF_CUSTOM_EXPORT_DIRECTORY', '/custom-folder/acf');`

Email me if you have any questions (me@blizzrdof77.com). Enjoy!

Installation

  1. Make sure Advanced Custom Fields Pro plugin is present and activated 2 Upload the acf-auto-php-export folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in the WordPress WP Admin dashboard
  3. Default export directory is "acf/fields" in the theme root (see plugin derscription for customization options)

Requirements

  • Advanced Custom Fields Pro (version 5) plugin