GreenLight Native · capability lab
An HTML shell with real blocks inside.
This heading, paragraph and the buttons are native, editable blocks nested inside one Custom HTML section. Running on Quality Publishing.
What this page exercises
Six capabilities, one page, no theme edits.
05
SureCart checkout
A custom checkout page wrapping a SureCart form, styled through SureCart’s –sc-* variables.
5
SureCart products
Same placeholder with another argument; the SureCart Product List renders them below.
01
Global tokens
These cards use .gln-card and --gln-* tokens stored once in Global Styles Custom CSS.
02
Interactivity API
Tabs and an AJAX call driven by a store saved as a Site Snippets script module.
03
Query Loop
A native latest-posts loop with pagination and an empty state, nested in a custom shell.
04
Synced pattern
The closing call to action is one wp_block referenced by id.
Interactivity API + WP AJAX
State lives in a store, not in the section.
The data-wp-* attributes in this markup are processed on the server, so the first paint already shows one panel. No script in this section.
The gln/lab store is a Site Snippets JS module that imports @wordpress/interactivity. A PHP snippet provides the same isActive getter on the server.
This button calls a nonce-checked admin-ajax.php handler from a PHP snippet and writes the answer into context.
Query Loop
From the journal
-
Published Mar 13, 2025
Hello world!
Welcome to WordPress. This is your first post. Edit or delete it, then start writing!