How to get Username after user registration
<p>I'm redirecting user to a OTP verification page after user completes his registration. I want to get the username in the redirected page so that i can verify the user but unable to get username as user is not logged in.</p>

<p>How can get the username and fetch the user details from his profile in the redirected page. I'm using WordPress.</p>

<p>TIA</p>