Filter
rpress_user_registration_email_heading
On this page
Filters the heading of the welcome email sent to a new customer.
Runs in rpress_new_user_notification(). The default is the translated 'Your account info'.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$heading | string | Email heading. |
$user_data | array | User data array for the new account, including user_login and user_email. |
Return value#
string. Email heading.
Example#
function my_welcome_heading( $heading, $user_data ) {
return __( 'Welcome', 'my-plugin' );
}
add_filter( 'rpress_user_registration_email_heading', 'my_welcome_heading', 10, 2 );
Source#
Applied in:
includes/user-functions.php(line 523), inrpress_new_user_notification()
See also#
Was this page helpful?
