in WordPress

Displaying Post edit link in wordpress properly

Sometimes we need to play post edit link for admin, editor or author himself. To place the edit link on frontend it’s need to take care a bit so that the edit link is not visible to any unauthorized user. So my choice is showing the edit link who has other post edit permission and the author himself.

Here is my answer for such question in Stackoverflow