Brochures
The brochure feature lets editors manage orderable materials while developers maintain the React order flow, REST endpoint, and email behavior.
Last modified: July 10, 2026
Ownership Split
| Responsibility | Owner |
|---|---|
| Brochure title, description, image, file, and language options | Editor |
| Order form fields and validation | Developer |
| REST endpoint and email recipients | Developer |
| Successful order QA | Editor and developer |
Data Flow
- Editor adds
tibi/brochurechild blocks insidetibi/brochures. - PHP render serializes child block attributes into
#brochures-data. brochures.tsxrenders the three-step order flow.- The frontend posts JSON to
/wp-json/tibi/v1/submit-order. - WordPress sends internal and user confirmation emails.
Source Map
| Area | Source |
|---|---|
| Parent block | packages/wordpress/plugins/tibi-block-library/src/brochures/ |
| Child block | packages/wordpress/plugins/tibi-block-library/src/brochure/ |
| Frontend app | packages/wordpress/themes/tibi/src/brochures.tsx |
| REST/email endpoint | packages/wordpress/themes/tibi/inc/rest.php |
QA
- Confirm every item has a correct image and file.
- Confirm correct language quantity fields appear.
- Submit a test order on stage.
- Confirm the confirmation screen appears.
- Confirm internal and user emails are sent.