Developer Hooks
Actions
php// Flow lifecycle
add_action( 'oob_flow_started', function( int $flow_id, int $user_id ) {} );
add_action( 'oob_step_completed', function( int $flow_id, int $step_index, int $user_id, array $answers ) {} );
add_action( 'oob_step_skipped', function( int $flow_id, int $step_index, int $user_id ) {} );
add_action( 'oob_flow_completed', function( int $flow_id, int $user_id, array $actions ) {} );
add_action( 'oob_flow_abandoned', function( int $flow_id, int $user_id ) {} );
Filters
php// Modify step data before delivering to frontend
add_filter( 'oob_step_data', function( array $step, int $flow_id, int $user_id ): array {
return $step;
}, 10, 3 );
// Modify answers before saving
add_filter( 'oob_save_answers', function( array $answers, int $flow_id, int $step_index ): array {
return $answers;
}, 10, 3 );
// Override completion redirect URL
add_filter( 'oob_redirect_url', function( string $url, int $flow_id, int $user_id ): string {
return $url;
}, 10, 3 );
// Filter completion actions before they run
add_filter( 'oob_completion_actions', function( array $actions, int $flow_id, int $user_id ): array {
return $actions;
}, 10, 3 );