acf_get_field_types()
alias of acf()->fields->get_field_types()
No Hooks.
Returns
null. Nothing (null).
Usage
acf_get_field_types( $args );
- $args
- .
Default:array()
Changelog
| Since 5.6.0 | Introduced. |
acf_get_field_types() acf get field types code ACF 6.8.8
function acf_get_field_types( $args = array() ) {
// default
$args = wp_parse_args(
$args,
array(
'public' => true, // true, false
)
);
// get field types
$field_types = acf()->fields->get_field_types();
// filter
return wp_filter_object_list( $field_types, $args );
}