Action hook 'make_undelete_blog'

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

View Source

make_undelete_blog

Action Hook
Description
Fires when the 'deleted' status is removed from a site.

Hook Information

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

Hook Parameters

Type Name Description
int $site_id Site ID.

Usage Examples

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

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

Source Code Context

wp-includes/ms-site.php:1256 - How this hook is used in WordPress core
<?php
1251  			 *
1252  			 * @since 3.5.0
1253  			 *
1254  			 * @param int $site_id Site ID.
1255  			 */
1256  			do_action( 'make_undelete_blog', $site_id );
1257  		}
1258  	}
1259  
1260  	if ( $new_site->public !== $old_site->public ) {
1261  

PHP Documentation

<?php
/**
			 * Fires when the 'deleted' status is removed from 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.