bbp_switch_to_site( int $site_id )
Switch to a site in a multisite installation.
Description Description
If not a multisite installation, no switching will occur.
Parameters Parameters
- $site_id
-
(Required)
Source Source
File: includes/core/abstraction.php
function bbp_switch_to_site( $site_id = 0 ) { // Switch to a specific site if ( is_multisite() ) { switch_to_blog( $site_id ); } }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |