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

str_replace

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 →

Reset password with just email

Chad Butler · Jan 27, 2014 ·

NOTE: if you are using version 2.9+, there is a new set of code snippets using some new filter hooks that make this process easier.

One of the requests I get most often is how can I change the plugin to have the password reset only require the user to give their email address.  This especially comes up when people customize the process to use the person’s email address as their username, since a password reset form with “username” and “email” doesn’t make much sense in that situation.

Well, since version 2.8.5, there has been a filter hook in the password reset process that allows you to filter the arguments that are passed in order to reset the user’s password – wpmem_pwdreset_args.  There are two stages to this demonstration, and thus two parts of the code snippet.  First, we only need a form requesting the user’s email, so we will remove the “username” field from the form.  Second is filtering the arguments of the password reset process so that the user’s password can be reset with only the email provided. Continue Reading →

Multiple Selection Checkboxes – Add A Section Heading (Advanced)

Chad Butler · Jan 8, 2014 ·

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.

final

This tutorial is an extension of the tutorial on creating Multiple Selection Checkboxes.  This tutorial will add a little snippet to one of the functions in that tutorial to show you how to add a section heading to your group of checkboxes.

The end result is to have a heading for the group of checkboxes, followed by the checkboxes with the label text to the right, much like this screenshot.

This is a slightly more advanced tutorial that the previous basic tutorial.  You might try that one first.

While not overly complicated, I will work through the process step-by-step so that it is easier to understand what each section does.  Continue Reading →

Multiple Selection Checkboxes – Add A Section Heading (Basic)

Chad Butler · Jan 7, 2014 ·

This tutorial is an extension of the tutorial on creating Multiple Selection Checkboxes.  This tutorial will add a little snippet to one of the functions in that tutorial to show you how to add a section heading to your group of checkboxes.

This is a basic tutorial.  There is also a more advanced tutorial that will move the labels to the right of the checkbox.  You should understand the concepts in this tutorial before moving to the advanced.

Continue Reading →

Add a privacy policy or a terms of service in a textarea field

Chad Butler · Nov 26, 2013 ·

The plugin has a built-in process for adding a Terms of Service popup and that can be used in a number of different ways, or could be changed completely using some different filters.  But what about adding a separate Privacy Policy in a textarea field?  Or including your Terms of Service in the same way?  Here is a quick tutorial with some example code snippets to get you started.  Continue Reading →

  • « Go to Previous Page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • Page 5
  • Interim pages omitted …
  • Page 7
  • 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