restore_current_blog

Restore the current blog, after calling switch_to_blog().

Description

(int) restore_current_blog(); 

Returns (int)


Usage

  1. if ( !function_exists( 'restore_current_blog' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/bp-core-wpabstraction.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = restore_current_blog(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-core/bp-core-wpabstraction.php  
  1. function restore_current_blog() { 
  2. return bp_get_root_blog_id();