Home/Hooks/archive_blog
ACTION

archive_blog

Fires when the 'archived' status is added to a site.

wp-includes/ms-site.php
Line 1222
1 Parameter
View Source

Usage

add_action( 'archive_blog', 'your_callback_function', 10, 1 );

Action Callback:

function your_callback_function( $site_id ) {
    // Your code here
    
}

Parameters

$site_id

Parameter 1

⚡ Action Hook

Action hooks allow you to insert custom code at specific points during WordPress execution. Actions do not return any values.