• 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

Restrict Post or Page Access to Specific Users – Multiple Select Version

Chad Butler · Dec 23, 2014 ·

This is an extension of the ideas presented in the tutorial Restrict Post or Page Access to a Specific User with the twist that this version makes some minor changes to incorporate an HTML multi-select for selecting multiple users for access to a post.  

Continue Reading →

Blocking Custom Post Types

Chad Butler · Nov 21, 2014 ·

This article is provided free. Find out how you can get full access to premium content, including how-to articles and support forums, as well as priority email support and member exclusive plugin extensions..

 

Note: As of WP-Members 3.0, you can add custom post types to the plugin’s main blocking options. See the options documentation section on Custom Post Types.

This is a new method of blocking custom post types. There are two main differences over the method described here and the original method.

First, this method is a little more scalable.  If you have multiple custom post types and want to set a blocking value for each, you only need to add to the settings array.  Second, this method allows you to override the blocking value on an individual custom post type post than you have set for the custom post type as a group.  This operates the same as regular posts and pages. It also takes advantage of the new extra settings that WP-Members version 3.0 offers.

(If you want to add a meta box for blocking/unblocking individual custom post type posts, there is an additional code snippet you can add here.)  Continue Reading →

Move the Username Field in the Registration Form

Chad Butler · Oct 31, 2014 ·

By default, the username field comes at the beginning of the form rows array.  This field is not included in the plugin’s fields manager tab, so you can’t re-order it via drag-and-drop like the rest of the fields.

This quick and dirty code snippet that will allow you to move the location of the username field to come after any other field in the registration form.  Continue Reading →

Add a separator line of text in the registration form (wpmem_register_form_rows version)

Chad Butler · Oct 27, 2014 ·

This article is provided free. Find out how you can get full access to premium content, including how-to articles and support forums, as well as priority email support and member exclusive plugin extensions..

 

Using the wpmem_register_form_rows filter allows you a simple way to add custom fields and text to the WP-Members registration form using the wpmem_array_insert() API function.  Continue Reading →

Request additional fields on user profile

Chad Butler · Oct 19, 2014 ·

Sometimes, you might want to have a limited set of fields during the registration process, but would still like additional fields available for the user to complete in the user profile.  If these are not required fields, the process is relatively simple and can be completed with a single filter function.  

Continue Reading →
  • « Go to Previous Page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • Page 5
  • Page 6
  • 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