DocsOOnboardCreating Flows
Building Flows

Creating Flows

OOnboardorravo.com/docs/oonboard/creating-flows

Creating Flows

Flows are stored as a custom post type (oob_flow). Create and edit them at OOnboard → Flows.

Flow Settings

SettingDescription
TitleFlow name (not shown on frontend)
StatusDraft / Published
Show Progress BarToggle progress indicator
Allow Back NavigationLet users go back to previous steps
Require LoginOnly logged-in users can start flow
Restrict to RoleLimit access by WP role
Completion RedirectURL to redirect after last step is completed

PHP API

php// Get all published flows
$flows = OOB_Flow::get_all( [ 'post_status' => 'publish' ] );

// Get a specific flow
$flow = OOB_Flow::get( $flow_id );

// Get flow steps
$steps = OOB_Flow::get_steps( $flow_id );

// Get post-completion actions
$actions = OOB_Flow::get_post_actions( $flow_id );
// Returns array with keys: assign_role, award_xp, award_badge_id, omailer_list_id, webhook_url, webhook_secret

AJAX Admin Endpoints

POST wp_ajax_oob_create_flow      { title }
POST wp_ajax_oob_save_flow        { flow_id, steps, settings, actions }
POST wp_ajax_oob_delete_flow      { flow_id }
POST wp_ajax_oob_duplicate_flow   { flow_id }
POST wp_ajax_oob_get_flow_data    { flow_id }
Creating Flows — OOnboard Docs — Orravo