Creating Flows
Flows are stored as a custom post type (oob_flow). Create and edit them at OOnboard → Flows.
Flow Settings
| Setting | Description |
|---|---|
| Title | Flow name (not shown on frontend) |
| Status | Draft / Published |
| Show Progress Bar | Toggle progress indicator |
| Allow Back Navigation | Let users go back to previous steps |
| Require Login | Only logged-in users can start flow |
| Restrict to Role | Limit access by WP role |
| Completion Redirect | URL 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 }