Skip to main content

i4w_password_send_body

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:

ParameterDescription
$bodyThe body of the email, unfiltered.
$default_msgThe fixed portion of the body, as defined in “custom messages”.
$user_passwordThe user’s password.

Example:

PHP
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);