Make WordPress Core

Opened 18 years ago

Closed 18 years ago

#4055 closed enhancement (fixed)

wp_delete_post: add an exit hook

Reported by: kevinb's profile kevinB Owned by: rob1n's profile rob1n
Milestone: 2.2 Priority: low
Severity: minor Version:
Component: Administration Keywords: has-patch commit
Focuses: 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 18 years ago.

Download all attachments as: .zip

Change History (5)

#1 @markjaquith
18 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.

#2 @rob1n
18 years ago

See also #4056.

#3 @rob1n
18 years ago

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

#4 @rob1n
18 years ago

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