Shortcode & Gutenberg Block
Shortcode
[oonboard id="5"]
[oonboard id="5" style="modal"]
Attributes
| Attribute | Default | Description |
|---|---|---|
id | required | Flow ID |
style | "inline" | inline or modal |
button_label | "Get Started" | Label for modal trigger button |
class | "" | CSS class on wrapper |
Gutenberg Block
The OOnboard Flow block (registered as oonboard/flow) lets you select a flow from a dropdown and renders it server-side. Configure the flow ID in the block inspector.
AJAX Engine
The flow runs entirely via AJAX. Endpoints:
POST wp_ajax[_nopriv]_oob_get_flow_init { flow_id } → first step data
POST wp_ajax[_nopriv]_oob_get_step { flow_id, step_index }
POST wp_ajax[_nopriv]_oob_complete_step { flow_id, step_index, answers }
POST wp_ajax[_nopriv]_oob_skip_step { flow_id, step_index }
POST wp_ajax[_nopriv]_oob_abandon_flow { flow_id }
All endpoints validate nonce (oob_frontend) and return JSON.
