trashed_post action-hook . WP 2.9.0
Fires after a post is sent to the Trash.
Usage
add_action( 'trashed_post', 'action_function_name_213' ); function action_function_name_213( $post_id ){ // action... }
- $post_id(int)
- Post ID.
Changelog
Since 2.9.0 | Introduced. |
Where the hook is called
trashed_post
wp-includes/post.php 3239
do_action( 'trashed_post', $post_id );
wp-includes/class-wp-customize-manager.php 3113
do_action( 'trashed_post', $post_id );