PluginProbe
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin / 0.8.8
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin v0.8.8
1.1.10 1.1.9 1.1.8 1.1.7 1.1.6 1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.1 1.0.0 0.9.8 0.9.7 0.9.6 0.9.4 0.9.5 0.9.3 0.9.2 0.9.1 0.9.0 0.8.9 0.8.8 0.8.7 All 34 releases
desktop-mode / includes / users-window / bootstrap.php

bootstrap.php in OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin 0.8.8, at includes/users-window/bootstrap.php

33 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Desktop Mode — Native Users Window module bootstrap.
4 *
5 * Replaces the classic `users.php` iframe with a native desktop
6 * window driven by `<wpd-table>` and core's `/wp/v2/users` REST
7 * endpoint, behind a per-user opt-in (`OsSettingsState.nativeUsersEnabled`,
8 * surfaced as the "Use the native Users window" toggle in OS Settings →
9 * Features).
10 *
11 * Public PHP surface (all filterable):
12 *
13 * - desktop_mode_users_window_user_can_use
14 * - desktop_mode_users_window_args
15 * - desktop_mode_users_window_template_html
16 * - desktop_mode_users_window_query_args
17 * - desktop_mode_users_window_assignable_roles
18 *
19 * The URL-remap swap (Users tile → native window when opt-in is on)
20 * is implemented JS-side in `src/desktop.ts` via
21 * `registerNativeUrlRemap`.
22 *
23 * @package WPDesktopMode
24 * @since 0.18.0
25 */
26
27 defined( 'ABSPATH' ) || exit;
28
29 require_once __DIR__ . '/permissions.php';
30 require_once __DIR__ . '/login-tracker.php';
31 require_once __DIR__ . '/window.php';
32 require_once __DIR__ . '/rest.php';
33