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

strstr

Only Allow Registration From Specified Email Domains

Chad Butler · Jan 11, 2014 ·

One really fun thing about developing, maintaining, and supporting WP-Members over the years is putting together unique customizations and code snippets based on user requests that I never thought of.  It shows how truly versatile the plugin is and that there is a very diverse user base.

This particular snippet comes from a user request to essentially create an email whitelist for registration, thus only allowing registration if the user’s email account is from a certain domain.  This can be used in a number of different scenarios.  One particular use would be for someone maintaining content for specific business clients and you only want users from those specific client domains to be able to register.  Continue Reading →

Multiple Selection Checkboxes

Chad Butler · Oct 15, 2013 ·

As of WP-Members 3.1.0, multiple selection checkbox support is an included feature in the plugin. That makes custom implementation such as described here unnecessary for most applications. I am leaving this post here however as there may continue to be users who (1) need a high level of customization that may utilize some or all of this kind of approach, and (2) for users who may not update to 3.1+ who need this support.
Note that there is now a more flexible example of multiple selection checkboxes here. This example is easier to set up and allows for multiple checkbox groups.

Something that will probably become a full feature in the main plugin is multiple selection checkboxes. However, until that becomes a full feature, here is a code snippet that you can use to set this up in your existing installation.

Continue Reading →

Show optional form fields only on user update

Chad Butler · Apr 2, 2012 ·

Suppose you have some additional form fields that are not required for registration and you don’t want to show those as part of the registration process; but you would like them to be included when a user updates their registration info.  Here is an elegant way of doing that without resorting so hiding the fields with CSS.  Continue Reading →

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