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
- Remove 3rd party plugin notices from within own plugin
- View Private Published Page with URL Code (no login required)
- Hook to plugins admin settings
- WordPress filter that hook after each action/filter hook
- With W3 Total Cache when I publish a post it does not appear in the homepage. Only if i purge all cache [closed]
- How to stop or remove an action being called inside a function of an extended class
- Get posts from WP_Query and format them on admin_head
- Automatically add attributes to woocommerce product?
- Layout Plugin Admin Pages: Use BootStrap? [closed]
- Remove Duplicator plugin from admin menu if not an administrator
- Doubt using $wpbd->get_col for a single column
- Any hook for pre-plugin-update -either bulk or single plugin update
- The problem with WordPress Importer
- Cron job not firing
- See which user installed a plugin?
- Solutions to repost categories into multisite blogs?
- Edit default comments page in WP Admin
- How to enable qTranslate languages tabs in custom plugin page
- How do I “get the next 10 posts after post_id == x”?
- Hiding posts – WP Hide Post not working
- Add a custom form on the post-new.php admin page
- wordpress plugin is not activating from widget
- All Users > User List > Update User Meta Field Inline
- Insert new user with form submit ‘init’ hook
- Globally register styles but enqueue them selectively
- submit posts by unregistered users in wordpress
- Calendar Solution: Handling upcoming Dates with Posts?
- Admin Panel pagination link styles
- Is this the right way to execute some PHP in my plugin after a button click on an options page?
- get_post_type on post.php
- Is there an easy way to flag posts in the admin area?
- When to load auto-login code?
- How can I force users to a particular subdomain to log in for MU (Multisite)?
- 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’
- Any built-in function to associate a post to category through a plugin?
- How to hide some section in WordPress under Post
- Display post lists in 2nd paragraph
- Can’t delete Draft Post [closed]
- Matching Chapters to a Custom posts [closed]
- WordPress comments not appearing in blog posts, likely because of Redux template. Could I fix this with a plugin that adds a comment form as a block? [closed]
- Calling plugin function inside custom plugin for onclick event
- WordPress display breadcrumbs using Yoast plugin [closed]
- Outbound link autometic converted into linkdirect , and not opening
- How to check current user before all actions and filters?
- Display by Category in Admin
- Admin accounts unable to see plugins from external IP
- Preg Match All doesn’t Allow echo first character for WordPress Taxonomy Tags
- Two problems on my WordPress installation [closed]
- CampaignMonitor for WooCommerce – Move subscribe button [closed]
- Get Time Taken By Each Action Hook in WordPress
- Contributive page where people logged in can write
- Plugin dependencies: show notice like theme plugins dependencies
- Are functions in main plugin file called before function bound to register_activation_hook runs?
- Excerpts on category page
- Removing an action from wp_footer called in a class that’s inside a bigger class
- WordPress wp-admin/network/plugin-install
- How to pull email and name from Flamingo plugin
- how to access all user dashboard on fronted page [closed]
- How to set add question capability for author role in wp pro quiz plugin
- Which widget to use for display category post with view more? [closed]
- Plugin developer automated documentation
- Custom plugin init action causing general slowness
- Is there a hook to Intercept al urls from a webpage and redirect to a page
- External RSS feed to WordPress Portfolio
- add_action in static class [closed]
- Trying to fix form resubmition with PRG (Getting error: Cannot modify header information – headers already sent by)
- WordPress user account activation
- do_action() hook into load-(page)
- Display wordpress post’s in popup?
- External Script Using WP – Hooks / Actions Not Working?
- How to change the name of the “edit my profile” link in the WordPress admin backend
- Unable to add TAB character to post?
- how to add text to posts from tags
- Submit custom form from post content and execute in plugin
- Sync User to cPanel webmail?
- Inject HTML meta tag inside wordpress tag using add_shortcode
- Adding CSS to custom post type admin page causes error
- Add category selection to custom post type (plugin)
- How to get post ID with hooks publish_post, new_to_publish, etc
- add_action in a custom plugin
- register_activation_hook in oop approach
- Redirect to another page using contact form 7? [closed]
- What is @Action in WordPress?
- Problem with removing plugin action
- edit_user_profile and show_user_profile are not firing inside a class
- Add action to fire when a published post is updated