• Log In
  • Welcome
  • Features
  • Pricing
  • Documentation
  • Add Ons
  • Payment Gateways
  • Support
  • Customer Showcase
  • Blog
  • Contact

Log In


Join Now | Lost Password?

Skip to content

Paid Memberships Pro

WordPress Membership Plugin

  • Log In
  • Choose a Plan
  • Features
    • Product Overview
    • Screenshots
    • About Us
  • Pricing
  • Documentation
  • Showcase
  • Add Ons
  • Gateways
  • Support
  • Blog
Home  >  Blog  >  Restrict User Login for Members Only

Restrict User Login for Members Only

Estimated reading time: 2 minutes

TweetFacebookLinkedIn
Restrict User Login For Members Only

While some membership sites want to grow and attract as many people as possible to sign up, others are a bit more closed off and private.

What kind of private sites? I’m talking about internal sites for a company or an invite-only site that requires the admin to create your account.

Because let’s face it, sometimes members expire, cancel, or you proactively remove their access. For these users, while they still have a WordPress account, they don’t have a membership. They can log in, but they can’t access anything.

This recipe post shows you two method to restrict user login for anyone without an active membership level or valid email address.

This is especially helpful for a site that is totally locked down for members only, where you only allow public access to the homepage and login screens.

This content requires a premium membership plan.

View PricingLog In
Kimberly Coleman

Author: Kimberly Coleman

Kim is co-founder of Paid Memberships Pro. She has her hand in all aspects of the development, management, and marketing for the product and the team. She oversees frontend development for the core open source plugin and Add Ons.

Tagged: customizations, login link, restrict, restrict membership. Posted in Code Recipes, Premium Code Recipes. Bookmark the permalink. Last updated: November 23, 2022.
← 2023 Black Friday Membership Sites Roundup: Support Small Businesses
How to Create a Conditional Main Menu for Your Members in WordPress →

Build a membership site—for free.

The fastest way to charge for access to your WordPress site. Our core plugin is free and includes more than other membership plugins. You deserve more.

Start for Free
Choose a Plan

We’re 100% GPL

Our plugin's code is not obfuscated, runs on as many sites as you want and can be customized to fit your project's needs. We just ask that you follow the GPLv2 guidelines by applying the GPLv2 license to any altered or unaltered version of PMPro that you distribute. License Details »

GPL v2

Recent Articles and Updates

  • Banner image for Promote your membership website
    How to Promote a Membership Site
  • Banner image for Creating online community benefits membership site
    7 Ways Creating an Online Community Can Benefit Your Membership Business
  • How Paid Memberships Pro Handles User Creation at Checkout
    How Paid Memberships Pro Handles User Creation at Checkout

Platform

  • Pricing
  • Features
  • Reviews
  • Screenshots
  • Videos
  • Step-by-Step Guides

Use Cases

  • Associations
  • Blog & News
  • Community
  • Courses
  • Directory & Listing
  • Paid Newsletter
  • Podcast
  • Videos

Add Ons

  • Free
  • Standard
  • Plus
  • Admin
  • Integration
  • View All

Get Help

  • Support
  • Download & Install
  • Hosting
  • Developers
  • Blog
  • Contact Us

Company

  • About Us
  • Work With Us
  • Brand Assets
  • Affiliates
  • Privacy Policy
  • Terms of Service
Follow Us On

© 2023 Paid Memberships Pro. All Rights Reserved.