PluginProbe
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce / 3.3.0
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce v3.3.0
3.3.0 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.1 trunk 1.0.4 1.1.0 1.1.0.1 1.1.1 1.1.10 1.1.11 1.1.12 1.1.13 1.1.14 1.1.15 1.1.16 1.1.17 1.1.18 1.1.19 1.1.2 All 162 releases
cartflows / admin-legacy-core / architecture.md

architecture.md in CartFlows – Funnel Builder & Checkout Plugin for WooCommerce 3.3.0, at admin-legacy-core/architecture.md

18 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 ---
2 module: admin-legacy-core
3 ---
4
5 # admin-legacy-core
6
7 ## Responsibility
8
9 Owns the legacy (pre-3.0) CartFlows admin UI: the WP admin menu and pages, the React settings and flow-editor bundles, and the two server transports those bundles talk to — roughly 40 `wp_ajax_cartflows_*` handlers and the `cartflows/v1` REST controllers — plus the field-definition arrays and the shared save/sanitize path in `inc/meta-ops.php`.
10
11 Ownership stops at the data layer: it never defines post types, capability semantics, templates, or front-end rendering. The new-UI admin, and the notice that offers to switch to it, live outside this directory.
12
13 ## Why it is this way
14
15 This tree is selected at bootstrap by `CARTFLOWS_LEGACY_ADMIN`, computed from an option before `plugins_loaded`, and it is a near-identical fork of `admin-core/` — several files (`inc/log-status.php`, `inc/admin-menu.php`, `api/flow-data.php`) exist in both. A fix here almost certainly needs a mirrored fix there.
16
17 The mechanism that makes the module work is implicit: endpoint names, nonce actions and localized variable keys are all derived from method names, and the chain delivering a nonce to the browser spans include-time registration, an `add_filter` closure, and an `apply_filters` inside the enqueue. Nothing in any single file states that ordering, and every failure along it surfaces as the same "nonce validation failed".
18