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 do I check if I linked to a post before I delete it?
- How to use “Add link” pop up for a WordPress widget
- How to get Images included in Post
- Portable Post Links
- WordPress: How to get the current logged in author page URL?
- 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
- Is it possible to add a first and latest posts link?
- Post & edit a post from front end along with upload, dropdown, and other inputs
- How do I change the gallery that is inserted in the post?
- Get current users post URL?
- Navigation link to specific user page
- how to grab first link in post… and of course call it
- Posts Page Featured Image [closed]
- Load post content into div with ajax
- wp_list_categories link to first post of category instead of calling taxonomy template
- Link for the page archive for posts, like using custom post types with get_post_type_archive_link
- Displaying Page Title on index.php
- How to enqueue scripts depending on post formats?
- Linking to page with all posts
- How to Replace the WordPress Featured Image with a Video?
- 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
- if I create ‘front-page.php’, then how do I link to post index?
- 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
- Why won’t my taxonomy query show up?
- Admin Notices don’t display on the admin screen for certain post
- Direct link to “New post” in specific category?
- Why orderby=”date” does not support manually changed posts?
- Static page does not show my posts
- I am unable to publish/update post
- page.php showing loop of posts and not page content
- 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
- How should I add links to other pages/posts from my post?
- How to show single post page as home page
- Exclude category from
- Blog page not working
- How to display the link (title) and thumbnail post?
- Underscores Theme Unit Testing – Catching Untitled Posts
- get_the_excerpt() is not working as expected – returns wrong text
- Custom loop pagination links not working
- 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
- Unable to restore from backup – how to obtain old blog posts?
- 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?
- Block editors annoying warnings
- What does WordPress do if I save a post without content/title? [duplicate]
- 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
- All Posts Linking to Author Posts directly
- 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
- How to make Link to go on the first post
- 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)
- Authors’ Links on Homepage Not Going to Author Post Pages
- I can’t find the relevant part of the loop in my theme file. How do I find the full content with “More…”
- 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 link post titles on page A to its posts on page B?
- WordPress Architecture as a CMS – Posts & Pages
- How to create several Post pages
- Am getting duplicate data from get_posts()
- How to automatically convert a form with HTML link into post
- Automatically search and replace link in content (pages/posts)?
- WordPress Ajax load doesn’t work
- How to remove category and other tags from posts page
- I want the Title of page/post to show up topmost when reading the post/page
- Show category name in category.php when posts assigned to multiple categories
- Permalink issue with new blog posts > getting 301 redirect
- Show posts assigned to multiple categories in current category page
- How do I link my post title/excerpt/read more to the source site?