At the beginning of this year, we started work on 5.7 with a clear goal in mind to make conditional logic more customize-able. It didn’t take long until we saw the need for a modular JS library that would facilitate inheritance, instances and relationships – Something the previous design did not allow.
As mentioned, we have made some major improvements to our conditional logic. In previous versions this setting was restricted to only a handful of fields with basic rules. Now, you can expect to see almost every field available – each with their own rules!
We have added in the basics such as “value is equal to” and have plans to add in many more condition types over the coming releases! What’s even better is that you can create your own conditional logic rules too! Here’s a list of our new conditions.
Throughout the development of 5.7, we spent a lot of time in Chrome’s browser performance toolanalyzing the scripts that run during a typical page load. For those who are not familiar with this tool, we highly encourage you to check it out, as it has helped us write faster running code!
Even with all the new functionality, you can expect to see faster load times when working with ACF, especially when editing a field group – around 15% faster .
Our new JS library boasts a powerful collection of functions and models to speed up development time. This allows developers to define custom field types, field settings and conditional logic rules with just a few lines of code!
Localization and Internationalization play an important role in the WordPress admin area – they allow JS to access translated text and PHP data. We have made major strides towards a more efficient and effective workflow in this area which you can read about in this blog post.
The avid viewer among you may notice minor improvements throughout the admin, but more noticeably when viewing validation errors. We introduced a softer error style to more seamlessly integrate with the WordPress admin.
This update is as much about conditional logic as it is about the future of WordPress. There is no doubt we are moving towards a JS dominant future, with the likes of Gutenberg making large strides in this direction. Wherever WordPress takes us, ACF will follow, and provide the best tools to edit content!