There are multiple actions. Listed in order of appearance with their parameters:
untrash_post
–(int) $post_id
// before restoringtransition_post_status
–(string) $new_status, 'trash', (object) $post
trash_to_{$new_status}
–(object) $post
// useful to address a special trash to status actionuntrash_post_comments
–(int) $post_id
// before associated comments are untrasheduntrashed_post_comments
–(int) $post_id
// after associated comments are untrasheduntrashed_post
–(int) $post_id
// after restoring
Related answer with more statuses: Execute function when post is published
Related Posts:
- How can I log a user out of WordPress before the page loads?
- How to filter content post only on save
- Filter or action hook to insert content on admin pages before tag
- Action on post publish
- How to allow an editor to edit all WordPress blog posts but have the last say as administrator?
- posts comments goes to trash
- How do I add some javascript validation to the admin interface form’s onsubmit?
- how to execute some code after a post is published in WordPress [duplicate]
- Post deleted in trash [closed]
- What hook can I use to modify custom post data before it is displayed on the page?
- problem with register_activation_hook in plugin
- Get content and send to 3rd party
- Changing the “Plugin Activated” Message Default
- Changing wp login url without .htaccess
- How Do I Use The WordPress Plugin Posts 2 Posts by Scribu?
- What is the ‘admin_action_’ . $_REQUEST[‘action’] hook used for?
- How to Add jQuery Infinite Scroll to My Custom Archive Page
- Is there a global action for when a plugin is uninstalled?
- publish_post hook isn’t working for scheduled posts
- Publish Post After Click On A Link
- Very stubborn wp_register_script / add_action vs remove
- Enable comments for post with comments meta box removed
- Is it possible to add an action to the currently running action?
- How to add inline css/js inside a shortcode
- [Plugin: Posts 2 Posts] How does it work?
- How to prevent action in ajax request, when in admin side?
- Set attached to state
- How to add new tabs in post.php
- Admin Dashboard with Custom Tab for Client
- Can I use a method from an existing plugin as an action hook?
- Display comments of users on single page
- wordpress reusable content blocks
- Detect when any plugin is activated or deactivated
- Using the “Latest posts” feature on a different site
- How to send little data between admin pages of my plugin?
- Is there a way to order posts and custom post types as one group?
- How can i list random post from multiple category?
- Hook to plugins admin settings
- Any hook for pre-plugin-update -either bulk or single plugin update
- wordpress plugin is not activating from widget
- Admin Panel pagination link styles
- Is there an easy way to flag posts in the admin area?
- When to load auto-login code?
- finding whether request is for post, and post id
- How to get all of the activate_plugin action parameters?
- Display update notification messages like ‘What’s New’
- Get Time Taken By Each Action Hook in WordPress
- Removing an action from wp_footer called in a class that’s inside a bigger class
- Trying to fix form resubmition with PRG (Getting error: Cannot modify header information – headers already sent by)
- Display wordpress post’s in popup?
- Unable to add TAB character to post?
- _prime_post_caches in wordpress
- Using add_action before add_filter on a plugin?
- ‘Organize Series Plugin’ as muti author feature
- a weird attribute on every html tag
- remove_action not removing add_action from constructor
- How to get menu location in wp_update_nav_menu hook
- Is there a way to make the main page only display a brief description of the full article?
- Simply poll & Events Calendar plugins clashing
- WordPress plugin Post Creation [closed]
- posts from multiple post types in one slider
- How to display the featured post on the category page?
- How to remove products-links after the product title using remove_action
- trigger email when post is published by someone a user follows
- Embed PDF into wordpress
- Equivalent of admin.php for public pages
- How to use add_action for multiple instances of the same class
- Ajax request sends url rather than data
- How to get Recent Post From Each Category with Thumbnail?
- Edit post image attributes on fly?
- Why the internal link get converted into a comment?
- Copy/paste local images not working in WordPress
- How to change my 3000 Published post status to Draft using PHPMyAdmin
- Why do actions with class and public method don’t fire __construct()
- Is it possible to customize a wordpress post from outside dashboard(Something like site.com/post-type/post/?e=post_id)?
- All Post WordPress Page Error
- Is it possible to create duplicate post on other site (either push, on publish, or pull, periodically)?
- Echo custom admin field into a is_single()
- Creating Admin Submenu Page via Class Method
- Help needed with woocommerce (wc stripe) filter
- Add dynamic color to each category item
- Is there any hook to change media html in post? [duplicate]
- Run only on plug-in activation instead of wp_head
- Am I using an action hook correctly?
- plugins_loaded action is not working properly
- Publish Post but don’t call publish hook in foreground post creation
- Style WordPress Custom Post Type Single Page
- add_media_page function not creating submenu
- Remove action plugin
- get post excerpt by query
- Filter for modifying image on upload
- Using Postmash plugin in WordPress 3.3.1
- Adding hero images to blog posts
- How wordpress plugin hooks works? [duplicate]
- Frontpage Admin Bar Disappeared
- Get post id in Post Page within Wp-admin
- PHP $_session is not work in wordpress
- Shortcode returning specific content of a post
- Hook automatic_updates_complete to autoupdate plugin
- My wp_update_nav_menu action is firing twice