Ticket #4055 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

wp_delete_post: add an exit hook

Reported by: kevinB Assigned to: rob1n
Priority: low Milestone: 2.2
Component: Administration Version:
Severity: minor Keywords: has-patch commit
Cc:

Description

I'm writing a plugin which needs to perform an operation after clean_page_cache calls. All other calling functions have sufficient hooks.

This new hook will upgrade wp_delete_post to the API standards of its peers.

Attachments

includes~post.php.diff (265 bytes) - added by kevinB on 03/31/07 07:45:17.

Change History

03/31/07 07:45:17 changed by kevinB

  • attachment includes~post.php.diff added.

03/31/07 07:59:37 changed by markjaquith

  • owner changed from anonymous to markjaquith.
  • status changed from new to assigned.

I can't find any examples of similar hooks, but I like the idea, and it has come up before. I like your naming even... delete_post becomes deleted_post -- past tense.

03/31/07 16:49:33 changed by rob1n

See also #4056.

03/31/07 19:36:26 changed by rob1n

  • keywords set to has-patch commit.
  • owner changed from markjaquith to rob1n.
  • status changed from assigned to new.

03/31/07 21:41:46 changed by rob1n

  • status changed from new to closed.
  • resolution set to fixed.

(In [5158]) Add exit hook to wp_delete_post(). Props kevinB. fixes #4055