[wp-trac] [WordPress Trac] #49597: Introduce preflight filter to wp_delete_attachment().

WordPress Trac noreply at wordpress.org
Sun Mar 8 08:11:57 UTC 2020


#49597: Introduce preflight filter to wp_delete_attachment().
---------------------------+-----------------------------
 Reporter:  peterwilsoncc  |      Owner:  (none)
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Media          |    Version:
 Severity:  normal         |   Keywords:  needs-patch
  Focuses:                 |
---------------------------+-----------------------------
 Introducing `pre_delete_attachment` to be friends with `pre_delete_post`
 would be helpful for large sites.

 The signature would be identical:

 {{{
 apply_filters( 'pre_delete_attachment', bool|null $delete, WP_Post $post,
 bool $force_delete )
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49597>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list