How to add a class to edit_post_link?
Assuming you are reading this answer in the future (December 2015 or later). Starting from WordPress 4.4.0, The $class argument was added. So: edit_post_link( __(‘Edit’), ”, ”, 0, ‘post-edit-link btn btn-default’ ); See edit_post_link documentation.