# Disable notification

**URL:** <https://community.gravityforms.com/t/disable-notification/5339>\
**Category:** Get Help\
**Tags:** notifications, gform\_disable\_notification\
**Created:** [July 8, 2020, 5:09pm UTC](https://community.gravityforms.com/t/disable-notification/5339 "2020-07-08T17:09:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Hannon\_Graphic](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/mark_hannon_graphic/32/1514_2.png) [@Mark\_Hannon\_Graphic](https://community.gravityforms.com/u/Mark_Hannon_Graphic)\
**Post date:** [July 8, 2020, 5:09pm UTC](https://community.gravityforms.com/t/disable-notification/5339/1 "2020-07-08T17:09:48Z")

</div>

I can’t seem to get the disable notification filter to work When someone signs up for our newsletter on [our website](https://www.coastalartsguildct.org/), the first add their email to a form at the bottom of the right sidebar. Upon submission, they are redirected to a second form that collects more information.

I would prefer to receive notifications only from the second form. So I added the following to our functions file:  
// Disable notification for Newsletter Step 1  
add\_filter( ‘gform\_disable\_notification\_17’, ‘disable\_notification’, 10, 4 );

The ID of the first form is 17. According to the docs, this should have turned off the admin notification. The filter isn’t working because I am still getting them. What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![uamv](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/uamv/32/1412_2.png) [@uamv](https://community.gravityforms.com/u/uamv)\
**Post date:** [July 8, 2020, 7:26pm UTC](https://community.gravityforms.com/t/disable-notification/5339/2 "2020-07-08T19:26:46Z")

</div>

You’ll want this…

```auto
add_filter( 'gform_disable_notification_17', '__return_false', 10, 4 );

```

The `disable_notification` on that line is calling a function that returns `false`.

---

<div class="post-metadata">

**Author:** ![Mark\_Hannon\_Graphic](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/mark_hannon_graphic/32/1514_2.png) [@Mark\_Hannon\_Graphic](https://community.gravityforms.com/u/Mark_Hannon_Graphic)\
**Post date:** [July 8, 2020, 7:52pm UTC](https://community.gravityforms.com/t/disable-notification/5339/3 "2020-07-08T19:52:57Z")

</div>

Thanks Joshua. Shame on Gravity Forms for not including that detail in their documentation.

> **[gform\_disable\_notification - Gravity Forms Documentation](https://docs.gravityforms.com/gform_disable_notification/)**
>
> Use this filter to disable admin and user notification emails

---

<div class="post-metadata">

**Author:** ![Mark\_Hannon\_Graphic](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/mark_hannon_graphic/32/1514_2.png) [@Mark\_Hannon\_Graphic](https://community.gravityforms.com/u/Mark_Hannon_Graphic)\
**Post date:** [July 13, 2020, 10:13pm UTC](https://community.gravityforms.com/t/disable-notification/5339/4 "2020-07-13T22:13:44Z")

</div>

So much for the ‘\_\_return\_false’ parameter. We just received a new newsletter signup and the newsletter step one notification again appeared in my inbox. The disable notification filter appears to have done nothing.

Has anyone else used this filter successfully?

---

<div class="post-metadata">

**Author:** ![uamv](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/uamv/32/1412_2.png) [@uamv](https://community.gravityforms.com/u/uamv)\
**Post date:** [July 14, 2020, 1:36pm UTC](https://community.gravityforms.com/t/disable-notification/5339/5 "2020-07-14T13:36:57Z")

</div>

There could be another filter override your changes. Try the same filter, but with a high priority, so that it runs after any others that might be hooked in. See if this makes any difference.

```auto
add_filter( 'gform_disable_notification_17', '__return_false', 999, 4 );

```

---

<div class="post-metadata">

**Author:** ![Mark\_Hannon\_Graphic](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/mark_hannon_graphic/32/1514_2.png) [@Mark\_Hannon\_Graphic](https://community.gravityforms.com/u/Mark_Hannon_Graphic)\
**Post date:** [July 14, 2020, 4:49pm UTC](https://community.gravityforms.com/t/disable-notification/5339/6 "2020-07-14T16:49:26Z")

</div>

Thanks, I’ve updated the code. I’ll see if it works.

---

<div class="post-metadata">

**Author:** ![richardw8k](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/richardw8k/32/2354_2.png) [@richardw8k](https://community.gravityforms.com/u/richardw8k)\
**Post date:** [January 4, 2022, 5:59pm UTC](https://community.gravityforms.com/t/disable-notification/5339/7 "2022-01-04T17:59:19Z")

</div>


