acf/rest/get_field_schema filter-hookACF 1.0

Filter the REST API schema for a given field.

Usage

add_filter( 'acf/rest/get_field_schema', 'wp_kama_acf_rest_get_field_schema_filter', 10, 2 );

/**
 * Function for `acf/rest/get_field_schema` filter-hook.
 * 
 * @param array $schema The field schema array.
 * @param array $field  The field array.
 *
 * @return array
 */
function wp_kama_acf_rest_get_field_schema_filter( $schema, $field ){
	// filter...
	return $schema;
}
$schema(array)
The field schema array.
$field(array)
The field array.

Where the hook is called

acf_get_field_rest_schema()
acf/rest/get_field_schema
acf/includes/rest-api/acf-rest-api-functions.php 34
return (array) apply_filters( 'acf/rest/get_field_schema', $schema, $field );

Where the hook is used in Advanced Custom Fields PRO

Usage not found.