• 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 » Release Announcements » WP-Members Advanced Options 2.1.0 Update

WP-Members Advanced Options 2.1.0 Update

Chad Butler · Oct 18, 2018 ·

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

 

The WP-Members Advanced Options extension has been updated to version 2.1.0.

This release has some improvements for the way that accounts with duplicate emails are handled. It also includes an update to the upgrade API.  

Duplicate Emails

It’s important to emphasize that WP does not technically support allowing accounts with duplicate emails (i.e. email addresses that already have an account).  WP’s technical specs require usernames and emails to be unique.

With that being said, the Advanced Options extension does include support for allowing duplicate emails. The 2.1.0 update includes a couple of improvements to this feature.

In order to support duplicate emails and get past WP’s validation functions that shut it down, WP-Members Advanced Options “spoofs” the email address by adding some random characters to it before form validation, and then removing those after processing. That gets it around WP.  That process is hooked to a WP-Members action hook that other users may also use for redirecting on registration or profile update.  If a custom action was added that was set at the default priority (10), it may inadvertently be fired before the action that sets the spoofed email back to the original value.  This update sets the priority for this processing to run earlier (5) so that any other actions will not interfere (unless someone sets their action to run at priority 5 or lower).

The other improvement for dupe emails is a filter for the emails that get sent to the user and to an admin on registration.  Because the email functions run before the spoof email is set back to the original value, the admin notification included the spoof value rather than the actual email, and worse, the email to the user was trying to be sent to the spoof value.  This update has a filter to fix this and makes sure the emails have the right value.

Other Improvements

The upgrade API was updated to be localized (translated) and also to have its own text domain so that it does not have to rely on the extension it is packaged with.  Some translation work has been done for German, Dutch, and Spanish.  This will allow for translation of the license key form.

There were also some code improvements that will be implemented across all of the plugin extensions to remove certain constants and replace them with values contained in the object class.

Release Announcements

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