Documentation
SwitchGuard Pro
Floating Button

Floating Button

A floating button fixed to the admin screen allows quick-searching and switching to any user without navigating to the user list.

Navigate to SwitchGuard → Settings → Floating Button.

Settings

SettingDefaultDescription
Enable Floating ButtonYesShow the floating button in WP admin
Button LabelSwitch UserText label on the button
Button PositionBottom RightScreen position: bottom-right, bottom-left, top-right, top-left
Button Color#2E266DBackground colour (hex)

Using the Floating Button

  1. Click the floating button in any admin screen.
  2. A modal opens with a live user search field.
  3. Type a name or email - results populate via AJAX.
  4. Click a user to switch to them immediately.

The AJAX search endpoint (wp_ajax_switchguard_search_users) returns users matching the query, filtered by your switching permissions (role hierarchy enforcement applies).