Skip to main content

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​

NameTypeDescription
$schemaarraySchema entry (type, options, value, ...).
$keystringSetting key.
$prefixstringNamespace prefix, '' for core settings.
$view_idintView id.

Since​

  • 3.12.0

Source​

Defined in src/REST/InspectorRoute.php at line 7439