acf_field_time_picker::get_rest_schemapublicACF 1.0

Return the schema array for the REST API.

Method of the class: acf_field_time_picker{}

No Hooks.

Returns

Array.

Usage

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

acf_field_time_picker::get_rest_schema() code ACF 6.0.4

public function get_rest_schema( array $field ) {
	return array(
		'type'        => array( 'string', 'null' ),
		'description' => 'A `H:i:s` formatted time string.',
		'required'    => ! empty( $field['required'] ),
	);
}