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:

  • Mastering the Art of Crafting SMART Marketing Goals
  • Rediscover Your Brand Story: 7 Tips for Refreshing Your Company Identity
  • Creating Engaging Content: Tips for a Successful Content Marketing Strategy
  • After a Layoff or Underemployment: Ingenious Ways to Make Extra Money
  • Essential Tips for Freelancers Applying for a Mortgage
  • 5 Steps to Crafting Your Market Research Strategy
  • Revolutionizing Your Content Strategy: How AI Can Improve Your Content Marketing Efforts
  • Leveraging Content Marketing to Give Your Small Business an Edge in Today’s Digital Marketplace
  • Simple Tactics for Protecting Your Small Business Against a Recession
  • Create and delete WordPress sites in XAMPP with a simple batch file

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