Add Username to URL for redirect

WordPress has several functions for getting user information, for example the following ones:

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)