• 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 Filters

Filters

Customize form fields based on specific page or post criteria

Chad Butler · Sep 22, 2014 ·

This is a general discussion of how to customize the fields that are displayed in the registration form based on the page or the post that it is being displayed on.

There are some more advanced ways to approach this, but for most users, this will be the easiest to implement.
Continue Reading →

Blocking Content from Builder Plugins

Chad Butler · Jun 27, 2014 ·

WP-Members has always focused on content contained in the WordPress $content variable. More recently, the popularity of builder plugins such as Page Builder by SiteOrigin or Elegant Builder from Elegant Themes has raised the issue of blocking content that is not necessarily stored in the same manner.

Note: as of version 3.0.4, the priority of WP-Members filter hooked to the_content has been changed to accommodate builder plugins. The priority is now 99, so unless another plugin sets its priority at 100 or higher, WP-Members will come after it (which is what you want). I’ve left the information in this post intact as it may be useful for some applications, but for most users, it will be unnecessary.

The post focuses on the general approach to blocking content from these types of plugins and includes code snippets you can use for the two plugins mentioned above.  

Continue Reading →

Block Posts After a Set Number of Page Views

Chad Butler · Jun 7, 2014 ·

On occasion, the question of how to only prompt to login after a specific number of page views or an amount of time has passed. While there is no real fool proof way to implement this type of process, there are some ways you can implement it if this is right for you.

This demonstration will focus on requiring a user to login on blocked content after a set number of pages have been viewed on the site.  Continue Reading →

Restrict content by user level

Chad Butler · May 16, 2014 ·

I have written code snippets before on how to restrict content by user level, but that particular code snippet is based on using categories as the user levels, with higher level users still being able to access lower level content. For example, Silver, Gold, and Platinum level users having access or not to categories of the same name.

But what if you have content that you need to block by level that is not necessarily in a category?  Or what if you are using pages that need the same level of restriction.

Here is a code snippet that will allow you to assign a “level” to any content – post or page, and then assign a user level for the users.  This example provides a working code snippet for applying a series of progressive levels (higher level users have access to lower level content).  The example begins with three generically named levels, these can be renamed and expanded or contracted as needed.Continue Reading →

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 →

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 3
  • Page 4
  • Page 5
  • Page 6
  • Page 7
  • Interim pages omitted …
  • Page 16
  • Go to Next Page »

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