WordPress.org

Make WordPress Core

Changeset 40351


Ignore:
Timestamp:
03/30/17 04:30:27 (4 weeks ago)
Author:
jeremyfelt
Message:

Multisite: Add deleted_blog action after site has been deleted.

Props pauldewouters, johnjamesjacoby.
Fixes #25584.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ms.php

    r39945 r40351  
    173173        clean_blog_cache( $blog ); 
    174174    } 
     175 
     176    /** 
     177     * Fires after the site is deleted from the network. 
     178     * 
     179     * @since 4.8.0 
     180     * 
     181     * @param int  $blog_id The site ID. 
     182     * @param bool $drop    True if site's tables should be dropped. Default is false. 
     183     */ 
     184    do_action( 'deleted_blog', $blog_id, $drop ); 
    175185 
    176186    if ( $switch ) 
Note: See TracChangeset for help on using the changeset viewer.