Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 1.52 KB

README.md

File metadata and controls

38 lines (29 loc) · 1.52 KB

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 ([email protected]). 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