Skip to content
Docs
Get RestroPress

Filter

rpress_user_registration_email_heading

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

ParameterTypeDescription
$headingstringEmail heading.
$user_dataarrayUser 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), in rpress_new_user_notification()

See also#

Was this page helpful?