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"

(New article + Since 3.5.0)
 
(Include more information about the function)
Line 1: Line 1:
===Change Log===
+
== Description ==
* Since [[Version_3.5|3.5.0]]
+
Switch the interal blog id used to create keys in blog specific groups.
  +
  +
== Usage ==
  +
  +
%%% <?php wp_cache_switch_to_blog( $blog_id ) ?> %%%
  +
  +
== Parameters ==
  +
  +
{{Parameter|$blog_id|integer|Blog ID.}}
  +
  +
== Examples ==
  +
  +
=== Default Usage ===
  +
  +
== Change Log ==
  +
  +
* Since: [[Version_3.5|3.5.0]]
  +
  +
== Source File ==
  +
  +
<tt>wp_cache_switch_to_blog</tt> is located in {{Trac|wp-includes/cache.php}}
  +
  +
== Related ==

Revision as of 17:37, 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