WordPress.org

Support

Support » Plugins and Hacks » Member Approval » [Resolved] Username etc in email

[Resolved] Username etc in email

  • Andy

    @yorkshirecreationscom

    Hi Bruce, great plugin, one small issue I am seeing is that in the registration and approval notification emails the user replacement codes (as used by s2Member plugin) i.e. %%user_first_name%% or %%user_full_name%% do not display correctly.

    Does your plugin use different replacement codes?

    http://wordpress.org/plugins/member-approval/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Andy

    @yorkshirecreationscom

    Sorry, just realised that this plugin uses %%firstname%%, %%lastname%%, and %%fullname%% replacement codes. However, these do not work either.

    Andy, change the line in the public static function approved($user_id) function 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, using the wrong email options.

    Andy

    @yorkshirecreationscom

    Many thanks Rob

    My pleasure. The author replied that he’ll be updating this plugin to resolve this shortly as well.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Username etc in email’ is closed to new replies.
Skip to toolbar