Filter
rpress_user_registration_email_message
On this page
Filters the full body of the welcome email sent to a new customer.
Runs in rpress_new_user_notification() after the username, password and login lines have been assembled, immediately before the email is sent to the new user's address.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$user_message | string | Complete email body. |
$user_data | array | User data array for the new account, including user_login and user_email. |
Return value#
string. Email body.
Example#
function my_welcome_message( $user_message, $user_data ) {
return $user_message . "\r\n" . __( 'Thanks for ordering with us.', 'my-plugin' );
}
add_filter( 'rpress_user_registration_email_message', 'my_welcome_message', 10, 2 );
Source#
Applied in:
includes/user-functions.php(line 556), inrpress_new_user_notification()
See also#
Was this page helpful?
