[wp-trac] [WordPress Trac] #25584: Add an action hook at the end of wpmu_delete_blog

WordPress Trac noreply at wordpress.org
Sun Oct 13 12:20:18 UTC 2013


#25584: Add an action hook at the end of wpmu_delete_blog
-----------------------------+-----------------------------
 Reporter:  pauldewouters    |      Owner:
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Multisite        |    Version:
 Severity:  normal           |   Keywords:
-----------------------------+-----------------------------
 I have the need of an additional hook in the `wpmu_delete_blog` function
 in `wp-admin/includes/ms.php`.

 I'm maintaining a list of active blogs in a DB option which also has extra
 data associated. I update this list on 2 hooks currently: `wpmu_new_blog`
 and `delete_blog`

 Unfortunately, the `delete_blog` occurs before the actual blog deletion,
 so at that point, an SQL query will return that blog too.

 If there were a hook after the actual deletion, I could retrieve the list
 of active blogs.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25584>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list