-
Notifications
You must be signed in to change notification settings - Fork 1
Registering Advanced Custom Fields
Brian McCoy edited this page Feb 23, 2018
·
7 revisions
Alloy Core provides wrapper functions for the ACF PHP functions. There are a couple of reasons for this:
- It streamlines the addition of fields
- It reduces the overall code footprint
Registering the fields via PHP is preferred versus the WordPress GUI simply for the fact it makes them extremely portable and reusable. You can copy and paste them from template to template or project to project. When you deploy to staging or production you don't have to worry about messing with the database or any importing to get your fields.