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
About Fraser Clark
I've been a professional developer for over 10 years. I've been consulting and developing websites & software for small businesses, multi-nationals & governments.
I'm an expert in WordPress, Drupal, Laravel & a whole host of other platforms.