HTTP/2 301
server: nginx
date: Thu, 24 Jul 2025 06:12:09 GMT
content-type: text/html; charset=UTF-8
x-olaf: ⛄
x-redirect-by: WordPress
location: https://developer.wordpress.org/reference/classes/WP_Object_Cache/switch_to_blog/
x-frame-options: SAMEORIGIN
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 2
HTTP/2 200
server: nginx
date: Thu, 24 Jul 2025 06:12:09 GMT
content-type: text/html; charset=UTF-8
vary: Accept-Encoding
x-olaf: ⛄
link:
; rel="https://api.w.org/"
link:
; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
x-frame-options: SAMEORIGIN
content-encoding: gzip
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 2
WP_Object_Cache::switch_to_blog() – Method | Developer.WordPress.org
WordPress Developer Resources
WP_Object_Cache::switch_to_blog()
WP_Object_Cache::switch_to_blog( int $blog_id )
Switches the internal blog ID.
This changes the blog ID used to create keys in blog specific groups.
$blog_id
intrequiredBlog ID.
Version | Description |
---|
3.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.