How to Restrict Your WordPress Forms to Logged-in Users Only

Like Tweet Pin it Share Share Email

Are you in search of a simple technique to limit your WordPress type submissions to logged-in customers solely?

In case you have a membership web site, on-line retailer, or one other sort of web site that has registered customers, then it’s possible you’ll wish to limit sure types entry to solely logged in customers.

On this article, we are going to present you tips on how to limit your WordPress types entry so solely logged in customers can fill out and submit them.

Restrict Form Access in WordPress

When and Why You Must Limit Entry for WordPress Kinds?

There could possibly be a variety of situations while you would wish to limit entry to sure WordPress types to logged-in customers solely.

For instance:

  • Chances are you’ll be internet hosting a non-public members occasion, and also you solely need registered customers in your web site to RSVP.
  • Chances are you’ll limit entry to assist for members solely, and by proscribing it to logged-in customers solely, you may dynamically populate sure info from their profile.
  • You would possibly wish to run an worker survey or ballot, and also you wish to limit entry to your inside workforce solely.
  • You might be working a buyer NPS survey that you just solely wish to be submitted by logged-in customers solely.
  • You might need a particular prize declare type that you just wish to be accessed by solely sure logged-in customers.

These are just a few examples, however there could possibly be actually a whole bunch of different use circumstances the place you wish to limit type entry to registered customers solely.

With that stated, let’s have a look tips on how to limit your WordPress type entry to logged-in customers solely.

Methodology 1: Limit Type Entry with WPForms Type Locker Addon

This methodology is best and strongest, so we advocate it for all newbie customers. We are going to use the WPForms plugin and their Type Locker addon to fully lock down WordPress type entry.

WPForms is the finest WordPress type plugin utilized by over 2 million web sites. It was created by WPBeginner’s founder, Syed Balkhi, to have all of the options we would have liked for working our enterprise.

The very first thing you have to do is set up and activate the WPForms plugin. For extra particulars, see this step-by-step information on tips on how to set up a plugin in WordPress.

Upon activation, you have to enter your license key after which add over to the WPForms » Addons web page to put in the Type Locker Addon.

WPForms Form Locker Addon

Now you’re able to create a brand new type that has restricted entry for logged-in customers.

To do that, go forward and create a brand new type by going to WPForms » Add New. It will open the WPForms type builder the place you’ll be introduced with the choice to both select a type template or begin with a clean one.

WPForms drag & drop type builder is extraordinarily simple to make use of, so you may add or take away fields and customise the shape to your liking.

WPForms Form Builder

After getting added all the required fields, you have to go to the Settings Tab and click on on Type Locker.

WPForms Form Locker Settings

On this tab, you will notice the choice to allow password safety on your WordPress types, set complete entry limits, allow type scheduling, and allow proscribing entries to logged-in customers solely.

Form Locker Logged in User Only

When you verify the field, you will notice a brand new Message subject the place you’ll need to draft a message that can seem to all customers who usually are not logged in to your web site.

WPForms Form Locker Restrict Access Message

As soon as finished, you may tweak different type settings that you just would possibly want after which click on the Save button.

Now you may embed this manner on any WordPress submit or web page in your web site by utilizing the WPForms shortcode within the Basic Editor or by utilizing the WPForms block within the Gutenberg editor.

Merely go to Put up or Pages, after which click on on the Plus icon to pick a block. Subsequent, sort WPForms within the block search.

Add WPForms block to WordPress post or page

As soon as the WPForms block is added, choose your type to embed and also you’re finished. Congratulations, you have got efficiently created a WordPress type that’s restricted to logged-in customers solely.

Methodology 2: Limit Type Entry with Password Protected or Personal Pages

One other technique to limit type entry in WordPress is by utilizing the default WordPress visibility settings. You should use this methodology with the free model of WPForms or another contact type plugin.

Merely create a Web page or Put up the place you wish to embed the shape. After that click on on the Visibility settings on the fitting panel.

WordPress Page Visibility Settings

You could have the choice to both make the entire web page non-public or make the entire web page password protected.

Personal pages can solely be seen by the Directors and Editor degree customers in your web site.

When you set a password for the web page, then you’ll have to share that password with everybody who you wish to give entry to.

Whereas this methodology works, there are a number of downsides to it.

First, your complete web page is hidden not simply the types space. You lack the finer controls, and there’s no means so that you can see which logged-in person submitted the shape (in the event you’re utilizing the password protected setting).

Methodology three: Use Superior Membership Plugins to Limit Type Entry

When you’re utilizing a sophisticated WordPress membership plugin like MemberPress, then it comes with a variety of entry management options built-in.

You possibly can merely go to MemberPress » Guidelines to create a brand new permissions rule.

Add new rules in MemberPress

The rule edit web page lets you choose completely different situations and affiliate them to a membership plan.

For instance, you may choose all content material that matches a selected tag or class to be accessible solely to members with the silver subscription plan.

Add a rules set to MemberPress

You may also create extra particular guidelines. For instance, a single submit or web page, baby pages, or a selected URL.

After getting set the principles, you should use it together with any WordPress contact type plugin to limit type entry to logged-in customers solely.

For extra particulars, see our step-by-step information on tips on how to limit content material entry in WordPress.

We hope this text helped you discover ways to limit your WordPress types to logged-in customers solely. You may additionally wish to see our checklist of finest WordPress plugins for enterprise web sites.

When you favored this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You may also discover us on Twitter and Fb.

Comments (0)

Leave a Reply

Your email address will not be published. Required fields are marked *