edit_post_link() – Displays the edit post link for a post, if the user is allowed to change the post. WordPress Function.
Must be used inside the Loop of WordPress.
Since 4.4.0 The $class argument was added.
Add custom class to link.
The edit post link will be displayed only for users who can edit the post (posts).