acf_field_type_supports()ACF 6.2.5

Returns the value of a field type "supports" property.

No Hooks.

Returns

Mixed. The value of the supports property which may be false, or $default on failure.

Usage

acf_field_type_supports( $name, $prop, $default );
$name(string)
The name of the field type.
Default: ''
$prop(string)
The name of the supports property.
Default: ''
$default(mixed)
The default value if the property is not set.
Default: false

Changelog

Since 6.2.5 Introduced.

acf_field_type_supports() code ACF 6.8.8

function acf_field_type_supports( $name = '', $prop = '', $default = false ) {
	$supports = acf_get_field_type_prop( $name, 'supports' );
	if ( ! is_array( $supports ) ) {
		return $default;
	}
	return isset( $supports[ $prop ] ) ? $supports[ $prop ] : $default;
}