Customize wp_new_user_notification_email()
You need to use the get_password_reset_key function (see reference) which will query the database and return the reset password key of the user. Here’s a full working example: add_filter( ‘wp_new_user_notification_email’, ‘custom_wp_new_user_notification_email’, 10, 3 ); function custom_wp_new_user_notification_email( $wp_new_user_notification_email, $user, $blogname ) { $key = get_password_reset_key( $user ); $message = sprintf(__(‘Welcome to the Community,’)) . “\r\n\r\n”; $message … Read more