Member Approval
[resolved] Approved Email has a bug in replacing names etc (4 posts)

  1. The line in



    $opts['new-user-email']['body'] = str_replace(array('%%firstname%%', '%%lastname%%', '%%fullname%%'), array($user->first_name, $user->last_name, $user->first_name.' '.$user->last_name), $opts['new-user-email']['body']);

    should be:

    $opts['approval-email']['body'] = str_replace(array('%%firstname%%', '%%lastname%%', '%%fullname%%'), array($user->first_name, $user->last_name, $user->first_name.' '.$user->last_name), $opts['new-user-email']['body']);


  2. Oh actually, that's wrong too, it should be the line in the public static function approved($user_id) function, changed to this:

    $opts['approval-email']['body'] = str_replace(array('%%firstname%%', '%%lastname%%', '%%fullname%%'), array($user->first_name, $user->last_name, $user->first_name.' '.$user->last_name), $opts['approval-email']['body']);

    It was clearly a copy/paste from the new_user function.

  3. Bruce Caldwell
    Plugin Author

    Posted 1 year ago #

    Thanks very much! I've put this into my development environment. I'll release this later tonight.

  4. My pleasure. Loving the plugin, I use it for accepting new contributors, and the approval email now includes next steps for updating their profile and bio, and editorial guidelines for new posts.

    I've tried a few other plugins that approve new users, and they either don't work or don't have approval emails.

    I've sent in a donation for your efforts, and encourage others to do the same. ;-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 1 year ago by PressWizards.com - Rob Marlbrough
  • Latest reply from PressWizards.com - Rob Marlbrough
  • This topic is resolved
  • WordPress version: 3.8.1


No tags yet.