Skip to main content

Action: gravityview/view/query

Override the \GF_Query before the get() call.

On a combined View, this also runs for each added form's query. A View sort that form has no field for shows there as a \GravityKit\GravityView\View\Union\MissingOrder sort. Keep it, and change the sorts the same way on every form, so the sorts of each form stay lined up.

Parameters​

NameTypeDescription
$query\GF_QueryThe current query object reference
$this\GV\ViewThe current view object
$request\GV\RequestThe request object

Source​

Defined in src/View/View.php at line 2640