apply_filters( 'bp_member_switching_switched_message', string $message, WP_User $user, WP_User $old_user, string $switch_back_url, bool $just_switched )

Filters the contents of the message that’s displayed to switched users in the admin area.

Description

Parameters

$message

The message displayed to the switched user.

$user

The current user object.

$old_user

The old user object.

$switch_back_url

The switch back URL.

$just_switched

Whether the user made the switch on this page request.

Source

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

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.