Fires when the blog is switched.
Parameters
-
$new_blog_idint -
New blog ID.
-
$prev_blog_idint -
Previous blog ID.
-
$contextstring -
Additional context. Accepts
'switch'when called from switch_to_blog() or'restore'when called from restore_current_blog() .
Source
do_action( 'switch_blog', $new_blog_id, $prev_blog_id, 'switch' );
Changuelog
| Versionen | Description |
|---|---|
| MU (3.0.0) | MU (3.0.0) |
| 5.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.