Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

WordPress hook directory
trash_post

WordPress version history for trash_post

This database has information for all major versions from WP 1.2.1 through 6.2.

Version File Line Type
2.9 wp-includes/post.php 1281 View in context action
3.0 wp-includes/post.php 1828 View in context action
3.1 wp-includes/post.php 2055 View in context action
3.2 wp-includes/post.php 2086 View in context action

Important warning!

This hook does not occur in the most recent version of WordPress (6.2). Do not use it. It is deprecated. You should look at the list of "related hooks" below to see if you can figure out what replaced it.

Related Hooks

We find related hooks using word stems. trash_post has 2 significant word stem(s): trash, post. Note that some of the hooks below may not appear in all versions of WP.