WP-Members 2.7.2 Bug Fix Release

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();
}

Get Fresh Content Delivered

Join and get free content delivered automatically each time we publish.

Comments

  1. Richard says

    Hi Chad,

    Not sure if you remember, but I discussed a text parser issue in another thread back in Oct 2011. If you look at the ‘forgot password’ and ‘new user’ texts here you’ll see what I mean:
    http://www.mildnervillorna.se/?page_id=37

    At least you’ll see it if you’re using IE9, it doesn’t appear in Chrome and Firefox. Anyway, last time the problem went away when I upgraded to WP-members version 2.6.4.

    Now, I recently moved some of my webs to a different web hotel and then the problem reappeared. Didn’t change anything, just moved the web. I’ve now upgraded to latest version of WP and WP-members, but as you can see the problem is still there.

    Any ideas?

    Thanks!

    • says

      Hi Richard – I looked at it in IE, FF, and Chrome and I’m not seeing the problem. Could you email me a screenshot and indicate which plugin version and what WP version?

      Thanks!

  2. Marian says

    Hi Chad, I am having the same problem. Only newly registered can change /retrieve etc their passwords, old users just see the same login form instead of password reset or whatever else….
    Need some help please.

    • says

      Existing users should still be able to access the password change form unless they had be inadvertently deactivated. However, if that was the case, they would receive a login failed message when they attempt to login. Still, I would check the activation status of any of those users.

      • Marian says

        Believe me, not my case. I hace no screenshots to show because I was in hurry – the site is live (aeeto.com) and the only way I managed to solve this (for the second time in ten days – on 13th I upgraded to 2.7.1.) was:

        – first, review sql user tables itself (user was active) and since all seemed perfect, what I had left was to completely delete the user from the ‘User area’ on Dashboard.
        – then made a fresh register (with my email to avoid confusion to the user with welcome emails), change info in frontend and activate the user.

        Another problem I found was that for the secon time my .po and .no language files disappeared. I am doing a fresh review of the statements in es_ES right now (use localization plugin to scan non-translated) and , should you wish so, I can provide them for you to use as you wish.

        Also, I must say I’ve combed the plugin repository and it is your plugin that best covers all my needs. Once I’ve managed to contro the above troubles, I should be comfortable with it for and of course I plan to pay for usage in a forma of donation, becase you hard work is appreciated and needs to be thanked for.

        – then made a fresh login

  3. says

    Believe me, not my case. I hace no screenshots to show because I was in hurry – the site is live (aeeto.com) and the only way I managed to solve this (for the second time in ten days – on 13th I upgraded to 2.7.1.) was:

    – first, review sql user tables itself (user was active) and since all seemed perfect, what I had left was to completely delete the user from the ‘User area’ on Dashboard.
    – then made a fresh register (with my email to avoid confusion to the user with welcome emails), change info in frontend and activate the user.

    Another problem I found was that for the secon time my .po and .no language files disappeared. I am doing a fresh review of the statements in es_ES right now (use localization plugin to scan non-translated) and , should you wish so, I can provide them for you to use as you wish.

    Also, I must say I’ve combed the plugin repository and it is your plugin that best covers all my needs. Once I’ve managed to contro the above troubles, I should be comfortable with it for and of course I plan to pay for usage in a form of donation, becase you hard work is appreciated and needs to be thanked for.

    Also thanks for your fast replies, Chad.

  4. says

    Hi Chad, I was wondering why people were not activated through the user activation link that I set up in the email to be sent to the admin. So they were approving people and they weren’t getting activated. But I just saw there was a new update, so this will work now right?

    Also, I looked at the forums on wordpress to see if I could fix the problem of why people weren’t receiving their passwords, but I didn’t find a good answer. I’m stuck. If people aren’t getting their passwords through the wp-mail, then what should I do? Is there a way to set it up through the emails so people get their password sent through the wp-member emails?

    Do you have a solution for what I should do to get people to receive their passwords through the wp-mail?

    Any direction would be appreciated, even if you point me to a forum posting you’ve found helpful. I can edit the functions.php, so if I need to do something there, I’d like to know what it is. I’ve set up a twenty-eleven child theme for a client.

Join in the discussion