Skip to main content

Filter: gk/gravityview/view/embed-state/denial

Filters why the View is kept off a request that does not prove an embed.

An integration that shows the View on a screen of its own, such as Dashboard Views, returns null for a request that screen sends, so its lightbox, DataTables and map requests open the View, and its entries, as the screen does.

Parameters​

NameTypeDescription
$denied\WP_Error|nullWhy the View is kept off its own page, or null when it is not.
$view\ViewThe View the request is for.
$request\GV\Request|\WP_REST_Request|nullThe request.

Since​

  • 3.14.0

Source​

Defined in src/View/EmbedState.php at line 238