Office Address

41/D, West Brahmondi, Narsingdi

Phone Number

+880-1975374887

Email Address

[email protected]

You can use this filter to change the default “Registration complete. Please check your e-mail.” message on wordpress.
[php] add_filter( ‘wp_login_errors’, ‘override_reg_complete_msg’, 10, 2 );
function override_reg_complete_msg( $errors, $redirect_to ) {
if( isset( $errors->errors[‘registered’] ) ) {
$needle = __(‘Registration complete. Please check your e-mail.’);
foreach( $errors->errors[‘registered’] as $index => $msg ) {
if( $msg === $needle ) {
$errors->errors[‘registered’][$index] = ‘Your new message here’;
}
}
}

return $errors;
}
[/php]

Thanks DaveRoss

Written by

Maidul Islam

I am a freelance web developer.Like to share what i learn.