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' );
Related Posts:
- How to use “Add link” pop up for a WordPress widget
- How to know if get_posts() failed?
- How do I sort (order) the results from `get_children()`?
- Keep getting same permalink with WP_Query?
- how to display full post with pagination on home page
- How do I change the gallery that is inserted in the post?
- Navigation link to specific user page
- how to grab first link in post… and of course call it
- Posts Page Featured Image [closed]
- Linking to page with all posts
- Convert a complex webpage into WP theme
- Link button is not working while editing a post in Firefox [closed]
- How to load a different header based on post format?
- Changing next and previous post link text
- Adding a text link under the post title in the lists of posts
- Setting up navigation links for posts (first, prev, next, last)
- Understand post type
- Mark menu item as current-menu-item for category
- Understanding and using metaboxes in posts
- Admin Notices don’t display on the admin screen for certain post
- I am unable to publish/update post
- Removing rel=”nofollow” from links posted in Post Content
- Delete post by giving its link
- Custom WordPress Theme: Publish Date and Display Date for posts right beside each other
- Exclude category from
- Blog page not working
- get_the_excerpt() is not working as expected – returns wrong text
- How to use format post in a pertinent way
- How to Next and Prevous Navigation Buttons on the end of the page with custom image Using Wp Post Navigation Plugin
- get_adjacent_post by language
- How to handle broken links created by permalink/slug changes?
- Is it possible to paste a link without tags and make it directly a link in a post?
- Disable sticky option for specific categories
- Highlight static blog page link in header
- How to create a template for Pages?
- How do I do a page break?
- Admin – no Featured image choice in create new/page|post
- Is there a way to create a meta box that can be added multiple times to a post dynamically?
- Can’t get full post title if there a spaces in title
- Adding a user’s ID behind the tag ref link address
- how to hide empty fields of post category description?
- How to generate/create link automatically on every word of post in wordpress
- Give posts a particular template based on the assigned category
- Display Featured Posts Grid on Static Page (Gazette)
- how to handle the loop using filling bootstrap grid structure?
- Link to date_query results in WordPress
- Exists filter or action that change Add New Post link?
- Cant’ Grab WordPress Built-in Posts Through Loop
- Change default post style to columns
- Internal linking to posts permalink fail because of spaces and stripe at postname
- How do I allow certain users to make a certain type of post?
- How to add a post class on every post. (on homepage)
- Short link to read complete post
- Delete all Tag Links from Posts
- Link from Post to Another Post Via Clicking on Words within Original Post
- Link to older links
- How to create several Post pages
- Am getting duplicate data from get_posts()
- Change modified date to current date when title updated automatically
- Edit post & page option does not display on latest wordpress
- created post displaying differently on front end
- Aligning images in the wp editor not working. How do i get this to work in custom theme?
- How to pull latest posts from a specific category
- WordPress 5: prevent link from displaying page title instead of URL
- Problem paginating a subquery on a post
- Some custom post types did not return an object
- How do I remove all links from all my posts at once?
- Moved a website and excerpts don’t work for old posts
- How to get value of a selected option from select tag and use it in WP_query to filter posts?
- Creating a link to the first post in a category
- Post Category link is same with Page link
- Integrate video and iframe in a post type gallery
- How to put the WordPress blog into theme
- Display post order ranking within wordpress loop
- Displaying a specific sub-category’s posts from wp_query
- Post are not showing up
- Blog styling in SASS
- Post List Widget with custom posts and editing the Read More Link
- How to add a class to links inside posts text
- WP Load post with ajax and apply isotope
- Featured Images link to post parent
- My posts section for logged in user
- Display the current post author and his url in the post header
- External link not showing on post but showing on comment
- How to change link with broken link?
- Get most recent posts by category that aren’t first overall [duplicate]
- The post order is different for logged-in and non-logged-in users? [closed]
- How to show only the date, the title and a little “summary” of my WordPress post in my custom theme?
- Automatically add class to link based on link text
- Convert HTML5 to WordPress theme
- Read more link not working [closed]
- Wp_query WooCommerce products
- Get posts after calculating meta key
- After the local installation of an old WP website I can see the homepage but I can’t access to the articles, why?
- No matching template found when using single.php
- How to automatically convert a form with HTML link into post
- Automatically search and replace link in content (pages/posts)?
- How to remove category and other tags from posts page
- Permalink issue with new blog posts > getting 301 redirect
- Show posts assigned to multiple categories in current category page