Registering ACF fields via PHP offers some interresting advantages – like easier deploys, fewer DB hits, usable in versioning systems etc.
Here is a guide of available ACF fields for you to include in your ACF field groups.
If you don’t know how to register fields via PHP, read Register fields via PHP.
Minimal requirement to register a field
Remember that only
type keys are required.
You could write a simple field like this :
Key and name
This guide shows fields that have been exported directly from ACF visual editor. It creates fields with a key being a unique identifier.
To write fields faster without having to think too much, we follow this naming convention :