deactivate_blog action-hookWP 3.0.0

Fires before a network site is deactivated.

Usage

add_action( 'deactivate_blog', 'wp_kama_deactivate_blog_action' );

/**
 * Function for `deactivate_blog` action-hook.
 * 
 * @param int $id The ID of the site being deactivated.
 *
 * @return void
 */
function wp_kama_deactivate_blog_action( $id ){

	// action...
}
$id(int)
The ID of the site being deactivated.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

In file: /wp-admin/network/sites.php
deactivate_blog
wp-admin/network/sites.php 277
do_action( 'deactivate_blog', $id );

Where the hook is used in WordPress

Usage not found.