| 1 |
# Landing Module -- Ability Mining |
| 2 |
|
| 3 |
**Module:** Landing (Module 8) |
| 4 |
**Priority:** P1 |
| 5 |
**Directory:** `cartflows/modules/landing/` |
| 6 |
**WC Required:** No |
| 7 |
**Date:** 2026-03-04 |
| 8 |
|
| 9 |
--- |
| 10 |
|
| 11 |
## Source Files Reviewed |
| 12 |
|
| 13 |
- `class-cartflows-landing.php` -- Module loader |
| 14 |
- `classes/class-cartflows-landing-meta-data.php` -- Meta fields, settings |
| 15 |
- `classes/class-cartflows-landing-markup.php` -- Frontend rendering, redirect logic, homepage integration |
| 16 |
|
| 17 |
--- |
| 18 |
|
| 19 |
## Meta Keys Identified |
| 20 |
|
| 21 |
| Key | Type | Description | |
| 22 |
|-----|------|-------------| |
| 23 |
| `wcf-disable-step` | yes/no | Disable step toggle | |
| 24 |
| `wcf-custom-script` | textarea | Custom script | |
| 25 |
| `step_post_name` | string | Step slug (post field, not meta) | |
| 26 |
|
| 27 |
--- |
| 28 |
|
| 29 |
## Ability Candidates |
| 30 |
|
| 31 |
### 1. get-landing-settings (Configuration/Read) |
| 32 |
Returns landing step configuration: step slug, next step link shortcode, and disable-step toggle. This is the only viable read ability for this minimal module. |
| 33 |
|
| 34 |
--- |
| 35 |
|
| 36 |
## Rejected During Mining |
| 37 |
|
| 38 |
- **Custom script**: Security concern -- arbitrary code injection via API. |
| 39 |
- **Disable step toggle** (as write ability): Too generic (applies to all step types equally). Could be a general "update-step-settings" but that crosses module boundaries. Low value as a standalone write ability for landing only. |
| 40 |
- **Next step link shortcode**: Read-only informational value, already available via get-step. Captured inside get-landing-settings instead. |
| 41 |
|
| 42 |
--- |
| 43 |
|
| 44 |
## Notes |
| 45 |
|
| 46 |
The Landing module is intentionally minimal -- it is a page-builder-driven step type with almost no CartFlows-specific configuration. The step content is entirely managed through the page builder (Elementor, Gutenberg, Divi, etc.). Only 1 ability is viable. |
| 47 |
|