ButlerBlog

chad butler's weblog

  • About
  • Blog
  • WordPress Plugins
  • Contact
Home / Web / WordPress / WP-Members / WP-Members 2.7.2 Bug Fix Release

WP-Members 2.7.2 Bug Fix Release

By Chad Butler 8 Comments

I have gone ahead and released a bug fix for the bug discussed here.  Now, the bug really effects only those that use moderated registration.

However, even if you do not use that feature, you may want to upgrade as I have also included some new action hooks.  These hooks are in the registration function, which is also used for updating user data.  (This is specifically the front-end WP-Members process, not the back-end user profile.)

The hooks all pass the field data in case you want to use it somewhere else – for example keeping external profiles up-to-date.  There is Pre (before the data is recorded) and Post (after the data is recorded) for both new registration and user data update.  In all of these cases, the data has already passed through validation.

The action hooks are:

  • wpmem_pre_register_data
  • wpmem_post_register_data
  • wpmem_pre_update_data
  • wpmem_post_update_data

For all of these, the fields and the data are passed in an array.  The array values will vary depending upon the fields that you are using in your individual setup.

Here is an example that will print the array values and exit so you can get an idea of what is being passed:

add_action( 'wpmem_pre_register_data', 'my_pre_reg_hook', 1 );
function my_pre_reg_hook( $args )
{
   echo "<pre>"; print_r( $args ); echo "</pre>";
   exit();
}

Enjoyed this article?

Don't miss a single post. Subscribe to our RSS feed!

  • Facebook
  • Twitter
  • Email
  • Print
  • More
  • LinkedIn
  • Reddit
  • Tumblr
  • Pocket
  • Pinterest

Filed Under: WP-Members Tagged With: plugins, WordPress, WP-Members

About Chad Butler

Chad Butler is a freelance writer and web developer. He has developed several popular WordPress plugins and has written for forbes.com, sfomag.com, and investopedia.com. He also runs a small organic farm in east Georgia.

Join Us!

I will never share your information. No spam. No junk. No kidding. Unsubscribe anytime.


Recent Posts:

  • The Right Product at the Right Time
  • Top 3 Time Wasters
    Keeping You From Success
  • Top 8 Tips to Create Your Own Website Easily With WordPress
  • How to Fix wp_mail
    Settings for WordPress Email
  • 7 Reasons Why Social Networking Can Help Your Business
  • Understanding WordPress wp_mail and
    how to fix it
  • Prevent WordPress email sent
    to spam with this
  • Easy wp mail SMTP settings for WordPress
  • The Importance of Supporting Developers
    of Free Open Source Software
  • How to Run an Effective Meeting





Archives

  • About
  • Blog
  • Archive
  • Contact

Site powered by WordPress, running on the Genesis Framework from StudioPress.

Unless otherwise noted, content on this site is © 2006-2021 ButlerBlog and may not be reproduced without express written permission from the author.

Some content may include affiliate links for which this site receives a small commission.

loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.