Action hook 'unarchive_blog'

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

View Source

unarchive_blog

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

Hook Information

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

Hook Parameters

Type Name Description
int $site_id Site ID.

Usage Examples

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

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

Source Code Context

wp-includes/ms-site.php:1232 - How this hook is used in WordPress core
<?php
1227  			 *
1228  			 * @since MU (3.0.0)
1229  			 *
1230  			 * @param int $site_id Site ID.
1231  			 */
1232  			do_action( 'unarchive_blog', $site_id );
1233  		}
1234  	}
1235  
1236  	if ( $new_site->deleted !== $old_site->deleted ) {
1237  		if ( '1' === $new_site->deleted ) {

PHP Documentation

<?php
/**
			 * Fires when the 'archived' status is removed from a site.
			 *
			 * @since MU (3.0.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.