| 1 |
<?php |
| 2 |
/** |
| 3 |
* OpenStation — Native Users Window module bootstrap. |
| 4 |
* |
| 5 |
* Replaces the classic `users.php` iframe with a native desktop |
| 6 |
* window driven by `<os-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 |
* - openstation_users_window_user_can_register |
| 14 |
* - openstation_users_window_user_can_use |
| 15 |
* - openstation_users_window_args |
| 16 |
* - openstation_users_window_template_html |
| 17 |
* - openstation_users_window_query_args |
| 18 |
* - openstation_users_window_assignable_roles |
| 19 |
* |
| 20 |
* The URL-remap swap (Users tile → native window when opt-in is on) |
| 21 |
* is implemented JS-side in `src/desktop.ts` via |
| 22 |
* `registerNativeUrlRemap`. |
| 23 |
* |
| 24 |
* @package OpenStation |
| 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 |
|