WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#4055 closed enhancement (fixed)

wp_delete_post: add an exit hook

Reported by: kevinB Owned by: 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 7 years ago.

Download all attachments as: .zip

Change History (5)

kevinB7 years ago

comment:1 markjaquith7 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.

comment:2 rob1n7 years ago

See also #4056.

comment:3 rob1n7 years ago

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

comment:4 rob1n7 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.