Title: <abbr title="Not Safe For Work / Mature content">[NSFW]</abbr> Plugin breaks confirmation email link
Last modified: July 13, 2024

---

# [NSFW] Plugin breaks confirmation email link

 *  Resolved [nestle499](https://wordpress.org/support/users/nestle499/)
 * (@nestle499)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/plugin-breaks-confirmation-email-link/)
 * I send request confirmation new email and link not workin when I enable plugin
   
   [http://site.com/wp-admin/profile.php?newuseremail=a71292866c16f723c2b1db08e2257c04](http://site.com/wp-admin/profile.php?newuseremail=a71292866c16f723c2b1db08e2257c04)
 * New url dashboard – panel
 * Code request:
 *     ```wp-block-code
       $email = sanitize_email($_POST['email']);	$user = wp_get_current_user();	if (email_exists($email)) {		$data = (object)array(			'email ' => $email,			'message' => '',			'errorMessage' => 'The email address is already used'		);		echo json_encode($data);		die();	}	$hash = md5($email . time() . wp_rand());	$new_user_email = array(		'hash' => $hash,		'newemail' => $email,	);	update_user_meta($user->ID, '_new_email', $new_user_email);	$sitename = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);	$email_text = __(		'Howdy ###USERNAME###,		You recently requested to have the email address on your account changed.		If this is correct, please click on the following link to change it:		###ADMIN_URL###		You can safely ignore and delete this email if you do not want to take this action.		This email has been sent to ###EMAIL###		Regards,		All at ###SITENAME###		###SITEURL###'	);	$content = apply_filters( 'new_user_email_content', $email_text, $new_user_email );	$content = str_replace( '###USERNAME###', $user->user_login, $content );	$content = str_replace( '###ADMIN_URL###', esc_url( self_admin_url( 'profile.php?newuseremail=' . $hash ) ), $content );	$content = str_replace( '###EMAIL###', $email, $content );	$content = str_replace( '###SITENAME###', $sitename, $content );	$content = str_replace( '###SITEURL###', home_url(), $content );	wp_mail( $email, sprintf( __( '[%s] Email Change Request' ), $sitename ), $content );
       ```
   
 * I trying change self_admin_url on new address panel, but link doesn’t work and
   get 404
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-breaks-confirmation-email-link%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [MaximeWPS](https://wordpress.org/support/users/seinomedia/)
 * (@seinomedia)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/plugin-breaks-confirmation-email-link/#post-17889980)
 * Hello,
 * Thanks for using WPS Hide Login.
 * WPS Hide Login redirects non-loggedin users from wp-admin to 404. If your users
   aren’t logged in before the request, the plugin behaviour is right.
 *  Thread Starter [nestle499](https://wordpress.org/support/users/nestle499/)
 * (@nestle499)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/plugin-breaks-confirmation-email-link/#post-17892241)
 * Obviously, the retrieve_password() function should generate the correct link 
   to reset the password it is also obvious that the link to confirm the email change
   that is, hiding the admin panel should not break the basic functionality of users.
   otherwise it would also be fair to say that deleting all the source files of 
   the panel performs the function of hiding the admin panel or how do you propose
   to generate these links? obviously this is a problem
 *  Plugin Support [MaximeWPS](https://wordpress.org/support/users/seinomedia/)
 * (@seinomedia)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/plugin-breaks-confirmation-email-link/#post-17893330)
 * Hello,
 * WPS Hide Login hides login pages to prevent from brute force attacks. If you 
   enable users to log in by a public page, this plugin is useless.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[NSFW] Plugin breaks confirmation email link’ is closed to new replies.

 * ![](https://ps.w.org/wps-hide-login/assets/icon-256x256.png?rev=1820667)
 * [WPS Hide Login](https://wordpress.org/plugins/wps-hide-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wps-hide-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wps-hide-login/)
 * [Active Topics](https://wordpress.org/support/plugin/wps-hide-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wps-hide-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wps-hide-login/reviews/)

## Tags

 * [confirmation email](https://wordpress.org/support/topic-tag/confirmation-email/)

 * 3 replies
 * 2 participants
 * Last reply from: [MaximeWPS](https://wordpress.org/support/users/seinomedia/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/plugin-breaks-confirmation-email-link/#post-17893330)
 * Status: resolved