# desktop-mode/1.1.2/includes/users-window/bootstrap.php

OpenStation: Desktop Windows, Dock &amp; Virtual Desktops for WP Admin, version 1.1.2. 33 lines.

- Page: https://pluginprobe.com/plugins/desktop-mode/1.1.2/code/includes/users-window/bootstrap.php
- Raw: https://pluginprobe.com/plugins/desktop-mode/1.1.2/raw/includes/users-window/bootstrap.php
- Modified: 2026-08-07T20:39:04+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/desktop-mode/1.1.2/code/includes/users-window/bootstrap.php#L10-L20`.

```php
<?php
/**
 * OpenStation — Native Users Window module bootstrap.
 *
 * Replaces the classic `users.php` iframe with a native desktop
 * window driven by `<os-table>` and core's `/wp/v2/users` REST
 * endpoint, behind a per-user opt-in (`OsSettingsState.nativeUsersEnabled`,
 * surfaced as the "Use the native Users window" toggle in OS Settings →
 * Features).
 *
 * Public PHP surface (all filterable):
 *
 *   - openstation_users_window_user_can_register
 *   - openstation_users_window_user_can_use
 *   - openstation_users_window_args
 *   - openstation_users_window_template_html
 *   - openstation_users_window_query_args
 *   - openstation_users_window_assignable_roles
 *
 * The URL-remap swap (Users tile → native window when opt-in is on)
 * is implemented JS-side in `src/desktop.ts` via
 * `registerNativeUrlRemap`.
 *
 * @package OpenStation
 */

defined( 'ABSPATH' ) || exit;

require_once __DIR__ . '/permissions.php';
require_once __DIR__ . '/login-tracker.php';
require_once __DIR__ . '/window.php';
require_once __DIR__ . '/rest.php';

```
