BP_Core_Members_Switching::action_plugins_loaded()

Defines the names of the cookies used by Member Switching.

Description

Source

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

	public function action_plugins_loaded() {

		// Member Switching's auth_cookie
		if ( ! defined( 'BP_MEMBER_SWITCHING_COOKIE' ) ) {
			define( 'BP_MEMBER_SWITCHING_COOKIE', 'buddyboss_user_sw_' . COOKIEHASH );
		}

		// Member Switching's secure_auth_cookie
		if ( ! defined( 'BP_MEMBER_SWITCHING_SECURE_COOKIE' ) ) {
			define( 'BP_MEMBER_SWITCHING_SECURE_COOKIE', 'buddyboss_user_sw_secure_' . COOKIEHASH );
		}

		// Member Switching's logged_in_cookie
		if ( ! defined( 'BP_MEMBER_SWITCHING_OLDUSER_COOKIE' ) ) {
			define( 'BP_MEMBER_SWITCHING_OLDUSER_COOKIE', 'buddyboss_user_sw_olduser_' . COOKIEHASH );
		}
	}

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.