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
This commit is contained in:
parent
c37bf4c8d5
commit
f4ec57d876
|
@ -443,6 +443,8 @@ function wp_delete_post($postid = 0) {
|
|||
$wp_rewrite->flush_rules();
|
||||
}
|
||||
|
||||
do_action('deleted_post', $postid);
|
||||
|
||||
return $post;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue