PluginProbe
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin / 1.1.5
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin v1.1.5
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 / posts-window / bootstrap.php

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

29 lines 993 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * OpenStation — Native Posts Window module bootstrap.
4 *
5 * Replaces the chromeless `edit.php` iframe with a native desktop window
6 * driven by `<os-table>` and core's `/wp/v2/posts` REST endpoint, behind
7 * a per-user opt-in (`OsSettingsState.nativePostsEnabled`, surfaced as
8 * the "Use the native Posts window" toggle in OS Settings → Features).
9 *
10 * Public PHP surface (all filterable):
11 *
12 * - openstation_posts_window_user_can_register
13 * - openstation_posts_window_user_can_use
14 * - openstation_posts_window_args
15 * - openstation_posts_window_template_html
16 * - openstation_posts_window_query_args
17 *
18 * The URL-remap swap (Posts tile → native window when opt-in is on) is
19 * implemented JS-side in `src/desktop.ts` via `registerNativeUrlRemap`
20 * — this module owns only the window itself, not the entry point.
21 *
22 * @package OpenStation
23 */
24
25 defined( 'ABSPATH' ) || exit;
26
27 require_once __DIR__ . '/permissions.php';
28 require_once __DIR__ . '/window.php';
29