From f4ec57d876f7db44edbf1ed28b9800dcd4c9a3a3 Mon Sep 17 00:00:00 2001 From: rob1n Date: Sat, 31 Mar 2007 21:41:08 +0000 Subject: [PATCH] Add exit hook to wp_delete_post(). Props kevinB. fixes #4055 git-svn-id: https://develop.svn.wordpress.org/trunk@5158 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post.php | 2 ++ 1 file changed, 2 insertions(+) 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; }