Skip to content
Docs
Get RestroPress

Filter

rpress_user_registration_email_message

Updated
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#

ParameterTypeDescription
$user_messagestringComplete email body.
$user_dataarrayUser 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), in rpress_new_user_notification()

See also#

Was this page helpful?