acf_field_image::get_rest_schemapublicACF 1.0

Return the schema array for the REST API.

Method of the class: acf_field_image{}

No Hooks.

Returns

Array.

Usage

$acf_field_image = new acf_field_image();
$acf_field_image->get_rest_schema( $field );
$field(array) (required)
.

acf_field_image::get_rest_schema() code ACF 6.0.4

public function get_rest_schema( array $field ) {
	return acf_get_field_type( 'file' )->get_rest_schema( $field );
}