BP_Core_Members_Switching::get_instance()

Singleton instance.

Description

Return

(BP_Core_Members_Switching) Member Switching instance.

Source

File: bp-members/classes/class-bp-core-members-switching.php

	public static function get_instance() {
		static $instance;

		if ( ! isset( $instance ) ) {
			$instance = new self();
		}

		return $instance;
	}

Changelog

Changelog
Version Description
BuddyBoss 1.0.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.