i4w_password_send_body
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
Section titled “Parameters”iMember360 will pass the following parameters to your filter function:
| Parameter | Description |
|---|---|
| $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:
Section titled “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);