Core Function
View Source on Trac ↗ switch_to_blog()
switch_to_blog( mixed $new_blog_id, mixed $deprecated = null ) Switches the current blog.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $new_blog_id int | The ID of the blog to switch to. Default: current blog. Required |
| $deprecated bool | Not used. |
Return Value
(true)
Always returns true.
Function Information
Since Version
MU (3.0.0)
Source File
wp-includes/ms-blogs.php
Advertisement