File: bp-members/classes/class-bp-core-members-switching.php |
Description |
---|---|
BP_Core_Members_Switching::get_instance() |
Singleton instance. |
BP_Core_Members_Switching::__construct() |
Private class constructor. Use `get_instance()` to get the instance. |
BP_Core_Members_Switching::filter_removable_query_args() |
Filters the list of query arguments which get removed from admin area URLs in WordPress. |
BP_Core_Members_Switching::maybe_switch_url() |
Returns the switch to or switch back URL for a given user. |
BP_Core_Members_Switching::switch_to_url() |
Returns the nonce-secured URL needed to switch to a given user ID. |
BP_Core_Members_Switching::action_admin_notices() |
Displays the ‘Switched to {user}’ and ‘Switch back to {user}’ messages in the admin area. |
bp_member_switching_switched_message |
Filters the contents of the message that’s displayed to switched users in the admin area. |
BP_Core_Members_Switching::get_old_user() |
Validates the old user cookie and returns its user data. |
BP_Core_Members_Switching::authenticate_old_user() |
Authenticates an old user by verifying the latest entry in the auth cookie. |
BP_Core_Members_Switching::action_admin_bar_menu() |
Adds a ‘Switch back to {user}’ link in WordPress’ admin bar. |