Advanced custom fields and version control

I build a lot of websites in WordPress. One of the most useful tool when building WordPress is the plugin Advanced Custom Fields – I use it extensively.

A little talked about feature in ACF Pro (Version 5) is the ability to save your updates in version control such as Git and boost performance.

It is stupidly simple to do

Just create a folder in your theme directory called

 acf-json

The folder must have permissions for the server to read and write.

Everytime you create or update anything in ACF, it will automatically create a JSON file with your changes. You can commit to version control.

Now when you want to migrate your changes to live – all you need to do is go to ACF admin and select “Sync” and then click Apply

acf-pro-sync-available