techalica / acf-extended
ACF Extended provides an object oriented API to register fields, groups and layouts with ACF.
Installs: 7 203
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
This package is auto-updated.
Last update: 2025-04-21 22:24:36 UTC
README
Register advanced custom fields with object oriented PHP.
ACF Extended provides an object oriented API to register fields, groups and layouts with ACF. Oh, and you don't have to worry about unique field keys.
Installation
Require this package, with Composer, in the root directory of your theme.
$ composer require techalica/acf-extended
Download the Advanced Custom Fields Pro plugin and put it in either the plugins
or mu-plugins
directory. Visit the WordPress dashboard and activate the plugin. Please note that this package supports ACF version 5.6 or later.
Usage
All the fields can be generated through calling their respective 'type' name function with a label as an argument.
fields()->text('Name')
Resources
Below you'll find a list of articles which can help you getting started and advance your custom fields knowledge.
- A Beginner’s Guide to Advanced Custom Fields
- Best Practices when Designing Custom Fields
- Organizing Custom Fields Inside of WordPress with ACF
- Wait, ACF Has Settings?