Skip to content
Docs
Get RestroPress

Filter

rpress_user_registration_email_subject

Updated
On this page

Filters the subject of the welcome email sent to a new customer.

Runs in rpress_new_user_notification(). The default is '[Site name] Your username and password'.

Parameters#

ParameterTypeDescription
$subjectstringEmail subject.
$user_dataarrayUser data array for the new account, including user_login and user_email.

Return value#

string. Email subject.

Example#

function my_welcome_subject( $subject, $user_data ) {
	return __( 'Welcome! Your account is ready', 'my-plugin' );
}
add_filter( 'rpress_user_registration_email_subject', 'my_welcome_subject', 10, 2 );

Source#

Applied in:

  • includes/user-functions.php (line 514), in rpress_new_user_notification()

See also#

Was this page helpful?