Thread Starter
Geert
(@gdvwp)
Hello,
I wonder if anyone manages to use these hooks without the proposed fix.
$user_login and $user->user_login are not available (global), so I guess the only way is to add them to the code @ wp-login.php:
$message = apply_filters(‘retrieve_password_message’, $message, $key, $user_login);
and
$message = apply_filters(‘password_reset_message’, $message, $new_pass, $user->user_login);
Geert
What are you trying to achieve with all this?
There’s a built in way to reset your password.
Thread Starter
Geert
(@gdvwp)
Hello,
We’re building sites for our clients. We need to personalize the standard e-mails sent by WP. E.g. client-specific messages, multilingual (using qTranslate), client-specific contact details for help, …
So yes using the built-in process, but adapting the e-mail subject and content. I guess that’s what these hooks were designed for.
Geert
Thread Starter
Geert
(@gdvwp)
Hello,
Thanks. I’ve been exploring a bunch of plugins previously, yet none seemed to use these hooks. I will check them again asap.
G.
Thread Starter
Geert
(@gdvwp)
Hello, I checked the plugins. They all require a modification of wp-login.php, to add a 3rd parameter to the hook calls:
Can’t we have the wp-login.php edited to something like:
$message = apply_filters(‘retrieve_password_message’, $message, $key, $user_login);
and
$message = apply_filters(‘password_reset_message’, $message, $new_pass, $user->user_login);
It’s backwards OK and will benefit all new coding.
Best,
Geert
Submit that to trac.wordpress.org