Skip to main content

Filter: gk/gravityview/rest/layouts/list/grid-aware-templates

Filters the list of template ids that drive layout via the grid surface (POST /views/\{id\}/grid/_rows) rather than the static-area filter chain.

Add-ons that ship a grid-aware template can register here so /layouts reports has_grid: true for their id and downstream callers route placement through the row CRUD endpoints.

Parameters

NameTypeDescription
$grid_templatesstring[]Template ids using the grid surface. Defaults to ['gravityview-layout-builder'].

Since

  • 3.0.0

Source

  • Defined in src/REST/InspectorRoute.php at line 1278
  • Defined in src/REST/InspectorRoute.php at line 7393
  • Defined in src/Abilities/Discovery/ListLayouts.php at line 76