I did some search but could not find the exact answer.
My goal is the display "edit link" on profile pages but it will only visible to that user.
For example, John logged in and views the page site.com/author/john, then he will see edit link but he will not see this link on other users page.
If I use the code below, logged in user sees the link on every profile page.
<?php if ( is_user_logged_in() ) {
// edit link
} ?>
I think I need to get the current user info and do something with that.
Any help will be appreciated.