Fires when the blog is switched.
$new_blog_idint
$prev_blog_idint
$contextstring
'switch' when called from switch_to_blog() or 'restore' when called from restore_current_blog() .do_action( 'switch_blog', $new_blog_id, $prev_blog_id, 'switch' );
| Version | Description |
|---|---|
| MU (3.0.0) | MU (3.0.0) |
| 5.4.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/switch_blog