Usage:
This filter hook enables you to change the default “Send Password” message body on the fly through a filter.
If this hook is used, the email body returned by your filter function will override the default text.
Parameters:
iMember360 will pass the following parameters to your filter function:
$body | The body of the email, unfiltered. |
$default_msg | The fixed portion of the body, as defined in “custom messages”. |
$user_password | The user’s password. |
Example:
function my_i4w_password_send_body($body='', $default_msg='', $user_password='') { $new_message = 'Password Reminder
'; $new_message .= ''; $new_message .= '
Your password is: ' . $user_password . '
'; return $new_message; } add_filter('i4w_password_send_body', 'my_i4w_password_send_body', 1, 3);