switch_blog – action

Fires when the blog is switched. 

Parameters

(3.0.0)
( MU ) . . .
The
( 5.4.0 ) `$context` parameter was added. . . .
( int ) $new_blog_id New blog ID. . . .
( int ) $prev_blog_id Previous blog ID. . . .
$context
( string ) Additional context. Accepts ‘switch’ when called from switch_to_blog() or ‘restore’ when called from restore_current_blog(). . . .
API Letters: ,

Implementers