Skip to content

szepeviktor/acf-get

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Strongly typed Advanced Custom Fields get_field() variants

CircleCI Packagist Packagist PHPStan

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