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
- Is there a action hook for the “Empty Trash” button?
- Remove Categories / Tags From Admin Menu
- add action only on post publish – not update
- How to display by default only published posts/pages in the admin area?
- How to prevent posts from being published too close to each other?
- How to force one column layout on custom post type edit page?
- Find out who deleted a page or post?
- Post/Page Preview Template
- Custom Post Types, slug, archive and SEO plugins
- How can I retrieve multiple get_post_meta values efficiently?
- Setting Custom Sort Order of Posts within a Category
- Is it possible to Schedule Attachments in WordPress?
- Search Custom Post Type Pages and Custom Fields in 2 Dropdowns?
- How can you change the ‘Insert into Post’ title in the media button?
- Where does WordPress store the users customization in the theme
- Add a checkbox to post screen that adds a class to the title
- Elegant way to include only published posts with get_objects_in_term()?
- Using single.php from plugin folder instead of default template folder
- Can I force a metabox to be in one column?
- using wp_update_post on save_post
- How to add a new tab to page editor
- Custom permalink structure only for default posts
- Listen to Post action
- Replace image attributes for lazyload plugin (data-src)
- Exclude drafts in all() view of edit.php
- How to Test a Blog Post for Update vs. Publish Status — Unique
- “Current” class on a singular page menu item with custom post types?
- 404 for some custom taxonomy not ALL taxonomy
- How to handle a post before publishing?
- Given two custom post types: Automatically add meta fields from one custom post type to another
- How to only allow post to be deleted if custom field doesn’t exist
- Show a Category Specific Info Box
- Successive creation of over 1000 posts causes 404?
- Use radio buttons & checkboxes for post categories
- Make a custom URL and link to custom Template
- How to separate metabox data in front/backend
- How can i retrive the movies, trailers, news in a single page using search
- How can I create a menu items from meta box based on users input
- Special Query: Title, Terms, Content – %LIKE%
- Custom Post Title as search term
- Add default content to post (for specific category)
- How can I allow users (subscribers) to download selected posts into a single PDF? (RESOLVED)
- Setting default category for display
- Choose options via url
- Custom Post Type Pagination 404 Error (if paged>=2) [duplicate]
- Remove “minor-publishing” div from Publish admin metabox
- adding custom meta as well as looping through posts
- Display ONLY Latest Post From Several Categories
- wordpress radio button on single post page
- get post custom value
- WordPress strips some attributes for author posts
- First Custom Post Custom Fields Empty After New Custom Post
- Automatically delete default posts and pages on theme install?
- Best way to enable sorting by 3 criteria on a page of listings
- WordPress 3.2 – Problem with WYSIWYG editors in a custom post type?
- How to Do Custom Fields to Output a Definition List
- Display one post randomly from category on home page
- How to show only the date, the title and a little “summary” of my WordPress post in my custom theme?
- How to have more post in a page than in your home page
- Deleting first four characters from all Post Titles
- Deleling wordpress posts permanently still have IDs
- How remove “recent comments” title without modifying code? [closed]
- Return All Post from publish to draft [duplicate]
- custom post type single page template not working
- 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
- Taxonomy Category category.php not working
- Action while post is being published
- Post’s arent displaying
- Display post structure in function
- Can I get custom post items in select box (dropdown)
- Only show posts belonging to multiple cateogries at same time
- How to have 2 posting pages on a blog
- Default post type doesn’t display in url
- How edit footer copyright info? [closed]
- Dynamic Menu Item
- How do I get content of custom post type through post ID
- Changes done in admin panel are taking time to reflect in the REST api responses
- Need to show birthday of custom post type(Famous people in this case) in elementor. Date of birth set in custom fields
- How can add custom commands in post-new.php in wordpress
- Notify/check if the content of a custom gutenberg block has changed on save_post
- I have a website issue I am trying to resolve
- Download button under all images WordPress
- WordPress Custom Post type csv exporter
- Edit Page button is gone
- How to set something to added automatically to the post
- Can`t attach image to a multiple posts
- It tells me that I exceeded the maximum number of executions when trying to publish content
- How to add publish button in menu All Posts (Wp-Admin)