Used By
Used By | Description |
---|---|
wp-includes/ms-blogs.php: switch_to_blog() | Switch the current blog. |
wp-includes/ms-blogs.php: restore_current_blog() | Restore the current blog, after calling switch_to_blog(). |
Fires when the blog is switched.
(int) New blog ID.
(int) Previous blog ID.
(string) Additional context. Accepts 'switch' when called from switch_to_blog() or 'restore' when called from restore_current_blog().
File: wp-includes/ms-blogs.php
Version | Description |
---|---|
MU (3.0.0) | MU (3.0.0) |
5.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/switch_blog