---
id: gk-gravityview-view-embed-state-denial
title: "Filter - gk/gravityview/view/embed-state/denial"
sidebar_label: "gk/gravityview/view/embed-state/denial"
tags:
  - "3.14.0"
---

# 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

| Name | Type | Description |
|------|------|-------------|
| $denied | `\WP_Error\|null` | Why the View is kept off its own page, or null when it is not. |
| $view | `\View` | The View the request is for. |
| $request | <a href="../../api/classes/gv-request">\GV\Request</a>&#124;\WP_REST_Request&#124;null | The request. |

### Since

- 3.14.0

### Source

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

