• 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

Create a login modal

Chad Butler · Aug 10, 2017 ·

This tutorial will describe the process of creating a login form modal for WP-Members.  The process uses jQuery to display the form overlay and AJAX for logging the user in.  jQuery is also used to handle changing the menu link to display as a login/logout link.

(What’s a Modal? Essentially, this is a “popup” that loads over the page.  In this case, it will contain a login form that loads in front of the page. The page is dimmed when the modal is active.)
Continue Reading →

Validate Registration Based on MailChimp Subscription Status

Chad Butler · Aug 7, 2017 ·

This is one of those things that I never thought of but came up in a discussion with a support subscriber. Can registration be validated based on whether a user is subscribed to the MailChimp list or not?  If the user is subscribed, allow registration but if not return an error message.

The answer is yes, that’s quite possible.  WP-Members allows custom validation via the wpmem_pre_register_data action hook, and the MailChimp extension has an API function (wpmem_mc_get_list_member()) to check a list subscriber’s status.  The combination of those two things can be used to accomplish this in a simple code snippet.  Continue Reading →

Use jQuery to create a Log In/Log Out menu link

Chad Butler · Aug 3, 2017 ·

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

 

This simple tutorial will help you create a Log In/Log Out menu link that will display a link to the login page when the user is not logged in and a link to log out when they are logged in.

This has now been incorporated into the plugin as a standard feature – all you need to do is add a login link to the menu and give it a custom class of “wpmem_loginout”. See documentation on this feature.  This tutorial remains primarily for informational and educational purposes OR if you’d simply like to customize the login/out menu item. 

Continue Reading →

Automatically approve accounts from whitelisted domains

Chad Butler · Jun 20, 2017 ·

This article is a followup to “Restrict registration to specific email domains, IPs, or other data” that adds an element for moderated registration.  In this case, moderated registration is used and registrants with emails accounts from whitelisted domains are automatically approved, leaving all others to be approved by an administrator.

It should be noted that this only applies to WP-Members registration. It has become more common to integrate WP-Members with other plugins that also have registration, such as WooCommerce, BuddyPress, bbPress, etc.  If you are using one of these plugins for registration, that’s fine – but you need to then look into their process for custom validation.  Continue Reading →

Restrict registration to specific email domains, IPs, or other data

Chad Butler · Jun 7, 2017 ·

WP-Members allows for customizing the registration form validation. This feature can be used to restrict registration based on the user’s information such as email address, IP address, or some other data point.  This article covers how to do that and includes some basic examples.

It should be noted that this only applies to WP-Members registration. It has become more common to integrate WP-Members with other plugins that also have registration, such as WooCommerce, BuddyPress, bbPress, etc.  If you are using one of these plugins for registration, that’s fine – but you need to then look into their process for custom validation. Continue Reading →

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