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)


Top ↑

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 );
	}
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.