acf_get_field_type_prop()ACF 5.0.0

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() 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;
}