diff --git a/wp-includes/post.php b/wp-includes/post.php index 14544ced68..8edae737e4 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -443,6 +443,8 @@ function wp_delete_post($postid = 0) { $wp_rewrite->flush_rules(); } + do_action('deleted_post', $postid); + return $post; }