Codex tools: Log in
Contents |
Switch the current blog to a different blog. switch_to_blog(), is useful if you need to pull posts or other information from other blogs.
You can switch back afterwards using restore_current_blog().
Things that aren't switched:
false if $validate=true is passed and no such blog exists; otherwise true (even when "switching" to the current blog).
switch_to_blog() is located in wp-includes/ms-blogs.php
You can switch back afterwards using restore_current_blog()