• Prakash

    (@prakashnfrn)


    Hi,

    Password reset emails are not picking up {title} {last_name} {email} variables are from wordpress. Please help on this issue, after updating the plugin from 1.2 to 1.2.1 stop working sending those variables data. Still, I didn’t updated the plugin from 1.2.

    Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Wp Enhanced

    (@wpenhanced)

    Sorry for the delay

    Where are you trying to add these variables? What email is it, the main one they get with the reset link?

    Thread Starter Prakash

    (@prakashnfrn)

    Hi,

    I am trying to add those variables are in the WP admin > Frontend Reset Password > settings > Customise the email sent to your user email body.? On this section I have added {title}, {last_name} and {email} those variables and none of them are not picking up from users table and on the reset email those variables are not showing values.

    Thank you.

    Plugin Author Wp Enhanced

    (@wpenhanced)

    These variables are not in our plugin – I am confused why you said it worked before

    Thread Starter Prakash

    (@prakashnfrn)

    Hi,

    Those variables are worked up to version 1.2, after your plugin update to higher version of 1.2, the variables are not picking up, still I am using version 1.2 on my Live site, but staging I am using your latest version, on the stating reset password email not picking up those variables.? I am not sure why the latest version not picking up the variables.

    Thank you.

    Plugin Author Wp Enhanced

    (@wpenhanced)

    Hi Prakash

    We are not using those variables

    We have a filter that maybe another plugin or you hooked into?

    somfrp_retrieve_password_message

    If you want to send us admin logins we can go in and check – please submit a ticket to do this and not on this public forum

    Thread Starter Prakash

    (@prakashnfrn)

    Hi,

    The following function hook working perfectly fine for new version of your plugin, and rest password email sending those information now.  Thank you very much for your help.

    add_filter(“somfrp_retrieve_password_message”, “custom_password_reset”, 99, 4);

    function custom_password_reset($message, $key, $user_login, $user_data ) {

                  $message = str_replace(“{email}”,$user_data->user_email,$message);

                  $message = str_replace(“{last_name}”,$user_data->last_name,$message);

                  $message = str_replace(“{title}”,$user_data->title,$message);

                  return $message;

    }

    Thank you.

    Plugin Author Wp Enhanced

    (@wpenhanced)

    Perfect thanks!

    Have a brilliant week

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Password reset Email variables are not working’ is closed to new replies.