# Gform\_require\_login does not work \[RESOLVED\]

**URL:** <https://community.gravityforms.com/t/gform-require-login-does-not-work-resolved/13856>\
**Category:** Get Help\
**Tags:** add\_filter, gform\_require\_login, php, has-ticket\
**Created:** [November 11, 2022, 9:36am UTC](https://community.gravityforms.com/t/gform-require-login-does-not-work-resolved/13856 "2022-11-11T09:36:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![marianssen](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@marianssen](https://community.gravityforms.com/u/marianssen)\
**Post date:** [November 11, 2022, 9:36am UTC](https://community.gravityforms.com/t/gform-require-login-does-not-work-resolved/13856/1 "2022-11-11T09:36:32Z")

</div>

Hi everyone,

I’ve tried using the [gform\_require\_login](https://docs.gravityforms.com/gform_require_login/) filter as described in the documentation using the filter below in functions.php.

add\_filter( ‘gform\_requires\_login’, ‘\_\_return\_true’ );

This filter should enable required login in all forms. However, it seems like it’s not doing anything when being used inside functions.php in WP Twenty Twenty-Two theme. Am I using this filter correctly?

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [November 11, 2022, 5:41pm UTC](https://community.gravityforms.com/t/gform-require-login-does-not-work-resolved/13856/2 "2022-11-11T17:41:36Z")

</div>

> [@marianssen](#):
>
> gform\_requires\_login

The filter name is `gform_require_login` not `requires`. Are you using the correct filter name?

---

<div class="post-metadata">

**Author:** ![marianssen](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@marianssen](https://community.gravityforms.com/u/marianssen)\
**Post date:** [November 11, 2022, 6:11pm UTC](https://community.gravityforms.com/t/gform-require-login-does-not-work-resolved/13856/3 "2022-11-11T18:11:00Z")

</div>

Yes, that was one of the issues, also the previous version of the plug-in only supported this filter in api. The online documentation also had this incorrect filter usage mentioned online, but the support team and the most recent plug-in update helped fix both.

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [November 11, 2022, 6:11pm UTC](https://community.gravityforms.com/t/gform-require-login-does-not-work-resolved/13856/4 "2022-11-11T18:11:50Z")

</div>

Thank you. The update to 2.6.8.1 included a fix for this. If you need anything else, please continue with the support ticket.

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [November 11, 2022, 6:12pm UTC](https://community.gravityforms.com/t/gform-require-login-does-not-work-resolved/13856/5 "2022-11-11T18:12:04Z")

</div>


