wordpress send reset password link inside wp_new_user_notification_email

  1. Open your WordPress theme's functions.php file.
  2. Add the following code to modify the email content for user notification:
function custom_wp_new_user_notification_email( $wp_new_user_notification_email, $user, $blogname ) {
    // Your custom code here to modify the email content
    return $wp_new_user_notification_email;
}
add_filter( 'wp_new_user_notification_email', 'custom_wp_new_user_notification_email', 10, 3 );
  1. Inside the function custom_wp_new_user_notification_email, you can modify the email content to include the reset password link. This may involve using the $wp_new_user_notification_email, $user, and $blogname variables to customize the email's content as per your requirements.
  2. Save the functions.php file and test the new user notification email to ensure that the reset password link is included as intended.