deleted_blog action-hook . WP 4.8.0
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.╳
Deprecated: 5.1.0
Fires after the site is deleted from the network.
Usage
add_action( 'deleted_blog', 'action_function_name_6910', 10, 2 ); function action_function_name_6910( $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 | 5.1.0 |
Where the hook is called
deleted_blog
wp-includes/ms-site.php 292
do_action_deprecated( 'deleted_blog', array( $old_site->id, true ), '5.1.0' );
wp-admin/includes/ms.php 119
do_action_deprecated( 'deleted_blog', array( $blog_id, false ), '5.1.0' );