---
title: "Changing the &#8220;You are not allowed to view this content&#8221; text when an entry is pending approval"
date: 2026-04-23
author: "GravityKit"
link: "https://www.gravitykit.com/docs/gravityview/entry-approval/changing-the-text-when-an-entry-is-pending-approval/"
---

If you're using GravityView to create user profiles and you have your View set to show only Approved entries, a user will see the following message if they attempt to view their profile before the entry has been approved:

!["Message displays: 'You are not allowed to view this content' on a user profile page."](https://www.gravitykit.com/wp-content/uploads/2025/10/file-ASblKsHHxm.png)
*You can use this filter to change the "You are not allowed to view this content" text:*
```
add_filter( 'gettext', 'gv_modify_text', 20, 3 );
function gv_modify_text( $translated_text, $text, $domain ) {
    if ( $domain === 'gk-gravityview' && $translated_text === 'You are not allowed to view this content.' ) {
        return "Your entry hasn't been approved yet!";
    }
    return $translated_text;
}
```

```
add_filter( 'gettext', 'gv_modify_text', 20, 3 );
function gv_modify_text( $translated_text, $text, $domain ) {
    if ( $domain === 'gk-gravityview' && $translated_text === 'You are not allowed to view this content.' ) {
        return "Your entry hasn't been approved yet!";
    }
    return $translated_text;
}
```

With the filter in place, the user will see the following message:

![Profile page indicating entry is pending approval, dated October 22, 2019](https://www.gravitykit.com/wp-content/uploads/2025/10/file-lL3Mq1EPf0.png)