Filter
rpress_user_registration_email_subject
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#
| Parameter | Type | Description |
|---|---|---|
$subject | string | Email subject. |
$user_data | array | User 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), inrpress_new_user_notification()
See also#
Was this page helpful?
