Opened 6 years ago

Closed 6 years ago

#4055 closed enhancement (fixed)

wp_delete_post: add an exit hook

Reported by: kevinB Owned by: 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 (1)

includes~post.php.diff (265 bytes) - added by kevinB 6 years ago.

Download all attachments as: .zip

Change History (5)

kevinB6 years ago

  • 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.

See also #4056.

  • Keywords has-patch commit added
  • Owner changed from markjaquith to rob1n
  • Status changed from assigned to new
  • Resolution set to fixed
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.