acf_get_field_type_prop()
This function will return a field type's property
No Hooks.
Returns
(Array).
Usage
acf_get_field_type_prop( $name, $prop );
- $name
- .
Default:'' - $prop
- .
Default:''
Changelog
| Since 5.0.0 | Introduced. |
acf_get_field_type_prop() acf get field type prop code ACF 6.8.8
function acf_get_field_type_prop( $name = '', $prop = '' ) {
$type = acf_get_field_type( $name );
return ( $type && isset( $type->$prop ) ) ? $type->$prop : null;
}