• 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 Tips and Tricks

Tips and Tricks

Remove form headings

Chad Butler · Mar 19, 2014 ·

Depending on how the plugin gets used, sometimes the <legend> tag for the form is not needed. For example, if you have created a login page with the page title “Login”, you do not really need the form to also carry the same text.  Here are some generic utility snippets you can use to remove these various headings.  Continue Reading →

Modifying default error messages that are not editable in the dialogs tab

Chad Butler · Feb 7, 2014 ·

When I first developed the admin panels for the plugin, I added editable dialogs for most of the various error messages.  Since then, some additional dialogs have been added for form validation (as well as the ability to add your own validation and messages).  However, most of those were not included in the dialogs tab.  This is mainly because it does take quite a bit of programming overhead and more system resources for adding this as a feature.

So what if you want to change one of these messages?  For example, you would like to change the message “The username cannot include non-alphanumeric characters” to something more light hearted, such as “Like, no weird characters in the username, dude!”  This code snippet collects a number of these default message strings and allows you to replace them with your own versions.  Continue Reading →

A random word and number combination for passwords

Chad Butler · Jan 22, 2014 ·

One of the earliest code snippets provided on this site was one that discussed how to create an easier random password.  This post discussed two examples: one that showed how to create a random password of only upper and lower case letters and one that always set a specific word.

I understand that some sites have users that are not very computer savvy, and I often get the question of how does one generate a random password that is both secure and easy to use.  So, I came up with this little example.

This code snippet will generate a password that is a combination of a random word and a random 2 digit number.  This allows you to generate random passwords that will be easier on the user and still have some level of security.  Continue Reading →

Use an invitation code with the PayPal subscription extension

Chad Butler · Jan 14, 2014 ·

When running the PayPal subscription extension, you might have some users you want to give a free account to. Or you might want to offer a discount to users with a specific code.  Here is are some code snippets that will allow you to validate a promotion code in the registration form and if it is valid, either bypass the PayPal process (for a free subscription) or apply a discount.  Continue Reading →

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 →

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 14
  • Page 15
  • Page 16
  • Page 17
  • Page 18
  • Interim pages omitted …
  • Page 28
  • 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