Skip to main content

Filter: gravityview/rest/entry/fields

Filter the field IDs that are output in REST requests.

Parameters

NameTypeDescription
$allowed_field_idsarrayArray of field IDs to output. Default: visible fields in the View context.
$view\ViewThe View.
$entry\GravityKit\GravityView\Entry\EntryThe entry.
$request\WP_REST_RequestRequest object.
$contextstringThe context (directory, single).

Since

  • 2.0

Source

Defined in src/REST/ViewsRoute.php at line 163