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

link 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

link Data Flow

  1. Editor adds tibi/brochure child blocks inside tibi/brochures.
  2. PHP render serializes child block attributes into #brochures-data.
  3. brochures.tsx renders the three-step order flow.
  4. The frontend posts JSON to /wp-json/tibi/v1/submit-order.
  5. WordPress sends internal and user confirmation emails.

link 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

link QA