Skip to content
Docs
Get RestroPress

Filter

rpress_user_verification_email_subject

Updated
On this page

Filters the subject line of the account verification email.

Runs in rpress_send_user_verification_email() after the default translated subject "Verify your account" is built and before the email is sent through RPRESS_Emails. Return a different string to change the subject.

Parameters#

ParameterTypeDescription
$subjectstringThe email subject. Defaults to the translated string "Verify your account".
$user_idintID of the user the verification email is being sent to.

Return value#

string. The email subject.

Example#

function my_verification_subject( $subject, $user_id ) {
	return sprintf( __( 'Confirm your %s account', 'my-textdomain' ), get_bloginfo( 'name' ) );
}
add_filter( 'rpress_user_verification_email_subject', 'my_verification_subject', 10, 2 );

Source#

Applied in:

  • includes/user-functions.php (line 678), in rpress_send_user_verification_email()

See also#

Was this page helpful?