Skip to main content

Filter: gravityview/rest/entry/fields

Allow more entry fields that are output in regular REST requests.

Parameters

NameTypeDescription
$allowedarrayThe allowed ones, default by_visible, byposition( "context*" ), i.e. as set in the view.
$view\ViewThe view.
$entry\GV\EntryThe entry.
$request\WP_REST_RequestRequest object.
$contextstringThe context (directory, single)

Source

Defined in future/includes/rest/class-gv-rest-views-route.php at line 155