---
title: "Disable the unfiltered_html capability requirement in GravityView"
date: 2026-04-23
author: "GravityKit"
link: "https://www.gravitykit.com/docs/gravityview/advanced/disable-unfilteredhtml-requirement/"
---

GravityView requires users to have the `unfiltered_html` and `gravityforms_create_form` capabilities in order to edit a View. The HTML capability is needed because GravityView allows users to add HTML that is output on the front of a site. That ability can be abused to embed malicious scripts on the site.

 If you want to disable this requirement, we recommend [modifying a role or cloning a role and adding that capability](https://www.gravitykit.com/docs/gravityview/edit-entry/non-administrator-edit-view/). You can do so by adding this code to your site ([not sure where to add the code?](https://www.gravitykit.com/docs/gravityview/customizing-your-views/where-to-put-code-samples/)):

```
add_filter( 'gravityview/security/require_unfiltered_html', '__return_false' );
```

```
add_filter( 'gravityview/security/require_unfiltered_html', '__return_false' );
```