wphooks.info - deactivate_blog

deactivate_blog

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-admin/network/sites.php:
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
		break;

		case 'deactivateblog':
			/**
			 * Fires before a network site is deactivated.
			 *
			 * @since MU (3.0.0)
			 *
			 * @param string $id The ID of the site being deactivated.
			 */
			do_action( 'deactivate_blog', $id );
			update_blog_status( $id, 'deleted', '1' );
		break;

		case 'unspamblog':
		case 'spamblog':
			update_blog_status( $id, 'spam', ( 'spamblog' === $_GET['action'] ) ? '1' : '0' );
		break;

		case 'unmatureblog':