deleted_blog
Deprecated since 5.1.0. It is no longer supported and may be removed in future releases. It is recommended to replace this hook with the same one.
Fires after the site is deleted from the network.
Usage
add_action( 'deleted_blog', 'wp_kama_deleted_blog_action', 10, 2 );
/**
* Function for `deleted_blog` action-hook.
*
* @param int $site_id The site ID.
* @param bool $drop True if site's tables should be dropped.
*
* @return void
*/
function wp_kama_deleted_blog_action( $site_id, $drop ){
// action...
}
- $site_id(int)
- The site ID.
- $drop(true|false)
- True if site's tables should be dropped.
Default: false
Changelog
| Since 4.8.0 | Introduced. |
| Deprecated since | 5.1.0 |
Where the hook is called
deleted_blog
wp-includes/ms-site.php 294
do_action_deprecated( 'deleted_blog', array( $old_site->id, true ), '5.1.0' );
wp-admin/includes/ms.php 120
do_action_deprecated( 'deleted_blog', array( $blog_id, false ), '5.1.0' );