Action hook 'make_delete_blog'

in WP Core File wp-includes/ms-site.php at line 1246

View Source

make_delete_blog

Action Hook
Description
Fires when the 'deleted' status is added to a site.

Hook Information

File Location wp-includes/ms-site.php View on GitHub
Hook Type Action
Line Number 1246

Hook Parameters

Type Name Description
int $site_id Site ID.

Usage Examples

Basic Usage
<?php
// Hook into make_delete_blog
add_action('make_delete_blog', 'my_custom_function', 10, 1);

function my_custom_function($site_id) {
    // Your custom code here
}

Source Code Context

wp-includes/ms-site.php:1246 - How this hook is used in WordPress core
<?php
1241  			 *
1242  			 * @since 3.5.0
1243  			 *
1244  			 * @param int $site_id Site ID.
1245  			 */
1246  			do_action( 'make_delete_blog', $site_id );
1247  		} else {
1248  
1249  			/**
1250  			 * Fires when the 'deleted' status is removed from a site.
1251  			 *

PHP Documentation

<?php
/**
			 * Fires when the 'deleted' status is added to a site.
			 *
			 * @since 3.5.0
			 *
			 * @param int $site_id Site ID.
			 */
Quick Info
  • Hook Type: Action
  • Parameters: 1
  • File: wp-includes/ms-site.php
Related Hooks

Related hooks will be displayed here in future updates.