• 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 username from registration

Chad Butler · Mar 27, 2025 ·

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

 

There is often the question of using an email for a username. In WordPress, there is never a good reason to do this because the core WP schema does not allow for it. This post covers why you should work within the existing schema, how you can do that, and provides simple code snippets you can use to customize the WP-Members login and registration forms to handle it.

Continue Reading →

How to properly load (and unload) stylesheets

Chad Butler · Mar 26, 2025 ·

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

 

WP-Members comes packaged with a default stylesheet, which tries to be a generic as possible in order to look good in as many use-cases as possible. However, this may not be suitable in all instances. Ideally, in all cases, you would create a custom stylesheet that fits into your other style elements to match your existing theme.

Continue Reading →

Using a Code Snippets Plugin

Chad Butler · Jun 10, 2024 ·

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

 

For users not comfortable with adding code snippets by other means, a code snippets plugin manager can be a great tool. Actually, it can be a great tool for other users, too.

One of the most commonly used code snippets plugins is the aptly named “Code Snippets“. The plugin allows you to add custom code snippets as well as manage the code snippets you have added.

Some of the features include:

  • Ability to activate/deactivate code snippets
  • Ability to set code snippets to run only once (useful for utility scripts that manage user or post data)
  • Screening of code snippet syntax so that an invalid code snippet does not crash the site.

You can get the plugin through the WordPress plugin panel by searching for “Code Snippets” or download it from wordpress.org: Code Snippets – WordPress plugin | WordPress.org

Restrict a post or a page to a specific user role

Chad Butler · Jun 20, 2023 ·

While the core plugin restricts posts to logged in users, and can also create memberships for other types of restriction, sometimes you may wish to restrict content to a user role.

This custom code snippet can be copy-pasted to wherever you store custom code and will add a list of roles to the WP-Members restriction meta box in the post editor, and then will restrict the content based on those roles.

Note that this functionality is included in the WP-Members Advanced Options extension.

Continue Reading →

How to customize the profile links

Chad Butler · Mar 9, 2022 ·

This is a tutorial article on how to customize the profile links for the logged in state of the [wpmem_profile] shortcode. We will focus on different ways to approach it, all of which use the wpmem_member_links_args filter hook.

Continue Reading →
  • Page 1
  • Page 2
  • Page 3
  • 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