Description
Fires when the blog is switched.
Occurrences
Filename | Line Number |
---|---|
wp-includes/ms-blogs.php | 522 |
wp-includes/ms-blogs.php | 581 |
wp-includes/ms-blogs.php | 615 |
wp-includes/ms-blogs.php | 675 |
Parameters
Type | Name | Description |
---|---|---|
int | $new_blog_id | New blog ID. |
int | $prev_blog_id | Previous blog ID. |
string | $context | Additional context. Accepts 'switch' when called from switch_to_blog() or 'restore' when called from restore_current_blog(). |
PHP Doc
/**
* Fires when the blog is switched.
*
* @since MU (3.0.0)
* @since 5.4.0 The `$context` parameter was added.
*
* @param int $new_blog_id New blog ID.
* @param int $prev_blog_id Previous blog ID.
* @param string $context Additional context. Accepts 'switch' when called from switch_to_blog()
* or 'restore' when called from restore_current_blog().
*/