There is an action before the Trash link: post_submitbox_start
.
You can use it to add content to that box. The Trash has a float:left
, so it will move to the side.
Example:
add_action( 'post_submitbox_start', function() {
print '<button>Hey!</button>';
});
Result:
Related Posts:
- How can I create custom button in post.php
- WordPress plugin to publish to multiple remote WordPress blogs
- Using Custom Posts with Metaboxes and Drop-downs
- How to rename “Publish” metabox title in post screen
- Adding custom fields to bbpress reply form
- Calling Different Custom Post Timestamps in a table
- Is there a way to create a meta box that can be added multiple times to a post dynamically?
- How can I tell if a post has been published at least once?
- Simple Custom Metabox Not Saving
- Adding an option to post editor to show a site disclaimer or message
- Meta boxes not saving
- Display metabox with date
- How to prevent posts from being published too close to each other?
- Setting Custom Sort Order of Posts within a Category
- Can I force a metabox to be in one column?
- Custom permalink structure only for default posts
- Exclude drafts in all() view of edit.php
- Post publish only hook?
- How to add a “publish” link to the quick actions
- upload image in a meta box
- adding a custom css class to post
- Prevent duplicate posts in wp_insert_post using custom fields
- featuring old articles without messing up with the archive
- Add default content to post (for specific category)
- Pagination not working on Custom Page Template
- Display custom post types by date field
- How to hook a function only when I need to delete permanently a post?
- Does WordPress remove draft status automatically?
- Limit number of posts a user can make per minute?
- user contributed content as custom post types
- Remove custom posts that match taxonomy value
- Custom Theme Want To Remove One Category From All Displays
- Is there any WordPress alternative to Book module of Drupal?
- wp_query ‘s’ parameter does not work with custom post type
- How to start with post number x?
- Best way of deletion of old posts [closed]
- Sidebar links for different pages
- Deleted category by mistake, all posts now have categorized category. Can i revert that?
- Automatically Updating Publish Date Bug
- Blog Posts in Custom Menu
- How to display data in archive page?
- Delete post by giving its link
- How to make classes for posts?
- CPT archive redirects to single post
- Getting Custom Post Loop to display in Bootstrap 3 column grid
- ERROR: Your feed is invalid (after update WP4.7) in custom types
- Automatically add date to the auto generation of post slug
- Duplicate Custom Post Type and Taxonomy Slug
- How could I change my Permalink from blog to custom structure? [closed]
- WP Admin register taxonomy and post type performance
- WordPress Multisite – Create Default Post and New Category On New Site Install
- How to allow visitors to filter posts by multiple taxonomies
- Permalink doesn’t get displayed in Twitter button (Local WordPress problem?)
- Do action on publish or update?
- How to I retrieve the ID from the Posts page?
- a little direction on custom post type
- Format latest/newest post differently
- relating business and products with custom taxonomy?
- WordPress Query Posts From Category Post on Static Page
- Edit multiple custom post types while saving a new or edited post
- Create a custom posts page
- How to allow multiple thumbnail upload for Posts?
- add external project to web site wordpress on production
- Deleted a user with administrator rights. Now all the data/content/images are lost. how to recover them back
- Custom Post Limit for homepage only without plugin?
- Add delay to publish post
- Publish a Silent Post without updating Feed
- Change default post style to columns
- Custom Post Type, post-formats associated to custom post type > 404 archives
- Adding a custom post type meta field to rss
- Help with listing current users submitted custom post type in template file
- Delete post from admin but not from database
- Custom Select Query – Selecting the Year?
- Deleting old posts
- What would causes search to return incorrect results?
- search form for custom fields
- Some custom post types did not return an object
- Display Post from Custom Post Type with Shortcode
- Tag for custom post type
- WordPress get tags in “publish_post” hook
- Modified core/image rendering not showing in posts – only on pages
- Not display an image of category of custom post
- Manual Scheduler For Custom Post Type
- Dev and prod on the same database- dev version active for IOS
- How to delete/customize imported demo content from a theme or add my own?
- single- and archive- templates not being applied to custom post types, not even after flushing permalinks
- How to show content of specific item on the same page?
- How to list all names and descriptions of a custom taxonomy
- How can I have the posts from one word press blog show on the presentation page of another word press site
- How to Test a Blog Post for Update vs. Publish Status — Unique
- How to handle a post before publishing?
- Show a Category Specific Info Box
- Make a custom URL and link to custom Template
- Special Query: Title, Terms, Content – %LIKE%
- WordPress 3.2 – Problem with WYSIWYG editors in a custom post type?
- How to show only the date, the title and a little “summary” of my WordPress post in my custom theme?
- I am creating a front end dashboard where I need to show all the posts by the current user. So, I need to show posts in publish
- Dynamic Menu Item
- Changes done in admin panel are taking time to reflect in the REST api responses
- I have a website issue I am trying to resolve