WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Difference between revisions of "Function Reference/wp cache switch to blog"

(Include more information about the function)
m (forgot to add parens after function name in source file section)
 
Line 20: Line 20:
 
== Source File ==
 
== Source File ==
   
<tt>wp_cache_switch_to_blog</tt> is located in {{Trac|wp-includes/cache.php}}
+
<tt>wp_cache_switch_to_blog()</tt> is located in {{Trac|wp-includes/cache.php}}
   
 
== Related ==
 
== Related ==

Latest revision as of 17:38, 12 December 2012

Description

Switch the interal blog id used to create keys in blog specific groups.

Usage

 <?php wp_cache_switch_to_blog$blog_id ?> 

Parameters

$blog_id
(integer) (required) Blog ID.
Default: None

Examples

Default Usage

Change Log

Source File

wp_cache_switch_to_blog() is located in wp-includes/cache.php

Related