composer require szepeviktor/acf-get
or copy all src/*.php
files to your theme or plugin.
For example ACFget::boolField($name)
returns a boolean for sure.
- 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