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/ms is switched"

m (moved Function Reference/is ms switched to Function Reference/ms is switched: Function name has changed (see http://core.trac.wordpress.org/changeset/21561))
(Include more information about the function)
Line 1: Line 1:
 
== Description ==
 
== Description ==
  +
Determines if [[Function_Reference/switch to blog|switch_to_blog()]] is in effect.
   
 
== Usage ==
 
== Usage ==
   
%%% <?php ?> %%%
+
%%% <?php ms_is_switched() ?> %%%
   
== Parameters ==
+
== Return Values ==
  +
{{Return||bool|True if switched, False otherwise.}}
   
 
== Examples ==
 
== Examples ==
Line 17: Line 18:
 
== Source File ==
 
== Source File ==
   
<tt> </tt> is located in {{Trac| }}
+
<tt>ms_is_switched()</tt> is located in {{Trac|wp-includes/ms-blogs.php}}
   
 
== Related ==
 
== Related ==

Revision as of 18:12, 12 December 2012

Description

Determines if switch_to_blog() is in effect.

Usage

 <?php ms_is_switched() ?> 

Return Values

(bool) 
True if switched, False otherwise.

Examples

Default Usage

Change Log

Source File

ms_is_switched() is located in wp-includes/ms-blogs.php

Related