• Skip to primary navigation
  • Skip to main content

RocketGeek

Home of WP-Members, The Original WordPress Membership Plugin

  • WordPress Plugins
    • WP-Members
      • FAQs
      • Quick Start
      • Documentation
      • Extensions
    • Advanced Options
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Download Protect
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Invite Codes
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • MailChimp Integration
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • PayPal Subscriptions
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Salesforce Web-to-Lead
    • Security
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Text Editor
      • Purchase the Plugin
      • Get the Pro Bundle
    • User List
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • User Tracking
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Memberships for WooCommerce
    • WordPass
  • Blog
    • Basics
    • Tips and Tricks
    • Filters
    • Actions
    • Code Snippets
    • Shortcodes
    • Design
    • Release Announcements
  • Store
    • Cart
    • Checkout
  • Contact
  • Log In
  • Show Search
Hide Search
Home » Archives for wpmem_securify

wpmem_securify

How to restrict categories to a defined user group

Chad Butler · Apr 26, 2014 ·

This concept is similar to the process outlined in How to add multiple user levels by category. However, the difference here is that we will restrict each category to a specific group (or level), but those users will not have access to the other categories.

In the other example, higher level users have access to lower level categories. In this example, each category is restricted to that specific group of users. Continue Reading →

Restrict Post or Page Access to a Specific User

Chad Butler · Dec 20, 2013 ·

Every once in awhile, I get a question about restricting content (either page or post) to a specific user.  There is a limited way to do that with the wpmem_securify filter, similar to the method for blocking content by category and user level.

post_meta_with_user_dropdownThis process is actually easier than blocking by levels or categories because you only need to determine three things:

  1. Is the user logged in? If not, then it is blocked regardless.
  2. If the user is logged in, but not the specified user, it is blocked and an error message is given.
  3. If the user is logged in and is the specified user, then the content is delivered.

This example will make use of a couple of new action hooks that will allow us to add a dropdown selector of users to the WP-Members post meta box.  Continue Reading →

How to add multiple user levels by category

Chad Butler · Oct 8, 2012 ·

This post will demonstrate how to restrict content to users based on user levels.  Content could be restricted by category, by tag, or by some other meta (such as a custom field).

This example will demonstrate “level” restriction by category, such as Silver, Gold, and Platinum categories.  In this example, we will set up those levels so that the Gold level users have access to Gold & Silver, and Platinum level users have access to all of the content.

Continue Reading →

Blocking content in a custom template

Chad Butler · Aug 11, 2012 ·

Lately, this question has come up a lot. How do you block content that is outside the loop and still display the login/registration forms on the page.

This type of issue may come up if you are using a custom query to put some specific content on a specific page, or it might be that you are displaying specific data that you want to protect. As long as it is something in the WordPress template framework, you can still use WP-Members to block the content. Continue Reading →

  • « Go to Previous Page
  • Page 1
  • Page 2

Ready to get started?

Join Today!

© 2025 · butlerblog.com · RocketGeek is built using WordPress, WP-Members, and the Genesis Framework

  • butlerblog.com
  • WP-Members Support Subscription
  • Terms of Service
  • Privacy Policy
  • Refund Policy