My header looks like this.
I chnaged my author base from "author" to "user"
So the user profile url looks like this.
What is the php function to get this url.
I'm using like this
<a href="<?php echo esc_url( home_url( '/' ) ); ?>user/<?php echo $current_user->user_login ?>"><?php echo $current_user->user_login ?></a>
Its working. But its hard coded.
Is there any other php function to get the url?