---
title: "Unapproving entries automatically after they&#8217;re edited"
date: 2026-04-23
updated: 2026-08-28
author: "GravityKit"
link: "https://www.gravitykit.com/docs/gravityview/edit-entry/unapproving-edited-entries-automatically/"
category: "GravityView > Edit Entry"
---

When allowing logged-in users to edit entries they created by checking the "Allow User Edit" box in View Settings, you also have the option to automatically unapprove entries after they've been edited:

![Screenshot of the View Settings panel showing the option to Unapprove Entries After Edit](https://www.gravitykit.com/wp-content/uploads/2025/10/file-VOohM4uMYM-6-1.png)Adding the **Approve Entries** field to the Edit Entry layout does not turn off the **Unapprove Entries After Edit** behavior. When someone who is not an administrator saves the entry, the approval status is still reset to "Unapproved", even if the Approve Entries field is left checked.

By default, only edits made by non-administrators will reset the approval status to "Unapproved."

If you would prefer to have the status reset to "Unapproved" when any user or administrator edits an entry, you can do that by adding the following code to your website:

```
/**
 * Unapprove entries after editing in GravityView, even if the user is an administrator
 *
 * @param array $form The Gravity Forms form being updated
 * @param string $entry_id The entry ID of the entry being updated
 */
add_action( 'gravityview/edit_entry/after_update', function( $form, $entry_id ) {
	gform_update_meta( $entry_id, 'is_approved', GravityView_Entry_Approval_Status::UNAPPROVED, $form['id'] );
}, 10, 2 );
```

Read here how to add these code samples to your website: [Where to put code samples.](https://www.gravitykit.com/docs/gravityview/customizing-your-views/where-to-put-code-samples/)

### Advanced information about the Unapprove Entries After Edit functionality:

GravityView's auto-unapprove feature is only called if all of these conditions are met:

- The user is editing from the frontend (specifically via the gravityview/edit\_entry/after\_update action)
- With the "Unapprove Entries After Edit " feature enabled for the View
- The user is not an administrator (they do not have `gravityview_moderate_entries` capability)
- The `gravityview/approve_entries/autounapprove/status` filter is not set anywhere to `false`