szepeviktor / acf-get
Strongly typed Advanced Custom Fields get_field function variants
Installs: 1 397
Dependents: 0
Suggesters: 0
Security: 0
Stars: 13
Watchers: 2
Forks: 2
Open Issues: 4
Requires
- php: >=7.1
Requires (Dev)
Suggests
- wpackagist-plugin/advanced-custom-fields: Customize WordPress with powerful, professional and intuitive fields.
README
Installation
composer require szepeviktor/acf-get
or copy all src/*.php
files to your theme or plugin.
Usage
For example ACFget::boolField($name)
returns a boolean for sure.
Field status
- Undefined ACF field
- Missing value, not in post meta
- Empty value when it is possible, e.g. "Allow null" is enabled in Select fields
- Existing value