• 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

Log in with Email or Username

Chad Butler · Jan 6, 2015 ·

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..

 

Here is a simple method for allowing users to log in with either their username or their email address.

This process allows the user to log in using either their username or their email address.  It’s not difficult to implement and leaves you with a clean process where you don’t have to worry about what to do when users change their email address.

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 →

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 →

User List layout in columns

Chad Butler · Aug 6, 2014 ·

user-list-columsHere’s a tutorial on setting up a unique layout display for the User List extension. This tutorial will show you how to arrange the users in rows/columns similar to this screenshot.

I’ll be honest and tell you that this requires some php skills as you’ll need to be able to do some string manipulation via one of the filter hooks.  You’ll also need to have some working knowledge of CSS.  This tutorial will give you the basics to create a version of the display shown, which was done in the Twenty Fourteen theme – depending on your theme, your mileage may vary and you’ll need to know CSS to work with adjusting the layout.  Continue Reading →

Multiple Selection Checkboxes

Chad Butler · Apr 22, 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.

multi-check.fwWith the new wpmem_register_form_rows filter hook introduced in 2.9, the process of dealing with multiple selection checkboxes becomes far less complicated than previously.

The previous method involved adding each checkbox as a field, and then all of the extra code we needed to handle multiple fields as one both for storing the data, handling user updates, and also in emailing admin notifications.

But 2.9 allows us to filter the rows directly in the array of rows and insert the extra html we need for this. That means you only need to create one field in the fields manager which makes handling the data much easier on the backend.  I’ve even made the code snippets nearly cut-and-paste.  In most cases, you should only need to specify the name for the checkbox group and the labels/checked values.  Continue Reading →

  • « Go to Previous Page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • 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