How To Restrict Forms To Logged In Users

The “Require user to be logged in” feature in Form Settings lets you restrict form access to logged-in users only, ensuring submissions come from authenticated users.

Require Login Settings

To enable the login requirement:

  1. Go to Form Settings.
  2. Navigate to the “Restrictions” section.
  3. Check “Require user to be logged in” to activate this option.

How Login Restriction Works

When this option is enabled, only users who are logged into your WordPress site can view and submit the form. Non-logged-in users will see a custom message instead of the form.

Here’s how it affects form visibility:

  • Logged-in Users: Can view and submit the form.
  • Non-logged-in Users: See the “Require login message” and cannot access the form.

Examples

Restrict a feedback form to registered users

Enable the login requirement and set a custom message:

  • Require Login Message: “Please <a href=’/wp-login.php’>log in</a> to provide your feedback. Not a member? Register <a href=’/register’>here</a>.”
Image showing Restrictions in Form settings
Image showing Require Login Message

Settings Reference

SettingDescription
Require user to be logged inCheck this option to require a user to be logged in to view this form.
Require login messageEnter a message to be displayed to users who are not logged in (shortcodes and HTML are supported).

Resources