switch_to_blog( mixed $new_blog, null $deprecated = null )

Switch to specified blog.

Description

See also

Parameters

$new_blog

(mixed) (Required) New blog to switch to. Not used.

$deprecated

(null) (Optional) Whether or not deprecated. Not used.

Default value: null

Return

(int)

Source

File: bp-core/bp-core-wpabstraction.php

		function switch_to_blog( $new_blog, $deprecated = null ) {
			return bp_get_root_blog_id();
		}

Changelog

Changelog
Version Description
BuddyPress 1.2.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.