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