Filter: gk/gravityview/rest/template-settings/view-schema
Filters a template setting's schema entry for the View it is about to be written to.
Runs on the Abilities / REST write path only. The source that owns a setting already receives the View context through its schema_callable; this filter is for another plugin widening a choice set it does not own (joined-form sort fields, for example) so the validator accepts what its editor UI offers.
Parameters
| Name | Type | Description |
|---|---|---|
| $schema | array | Schema entry (type, options, value, ...). |
| $key | string | Setting key. |
| $prefix | string | Namespace prefix, '' for core settings. |
| $view_id | int | View id. |
Since
- 3.12.0
Source
Defined in src/REST/InspectorRoute.php at line 7439