File: bp-members/classes/class-bp-core-members-switching.php |
Description |
---|---|
BP_Core_Members_Switching::__construct() |
Private class constructor. Use `get_instance()` to get the instance. |
BP_Core_Members_Switching::switch_back_url() |
Returns the nonce-secured URL needed to switch back to the originating user. |
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. |
BP_Core_Members_Switching::action_wp_meta() |
Adds a ‘Switch back to {user}’ link to the Meta sidebar widget. |
BP_Core_Members_Switching::action_admin_footer() |
Adds a ‘Switch back to {user}’ link to the WordPress footer if the admin toolbar isn’t showing. |
BP_Core_Members_Switching::filter_login_message() |
Adds a ‘Switch back to {user}’ link to the WordPress login screen. |