Skip to content

Get in Touch

Send a confidential message and we will respond within one business day.

// Split fields into steps at each 'step' break. $steps = array(); $step_meta = array(); $current = array(); $has_steps = false; foreach ( $fields as $f ) { if ( 'step' === $f['type'] ) { $has_steps = true; $steps[] = $current; $step_meta[] = array( 'title' => $f['label'] ? $f['label'] : '', 'desc' => isset( $f['options'] ) ? $f['options'] : '', ); $current = array(); continue; } $current[] = $f; } $steps[] = $current; if ( $has_steps ) { // First step has no preceding break — synthesize its meta. array_unshift( $step_meta, array( 'title' => __( 'Your Details', 'unique-mind' ), 'desc' => '' ) ); } ?>

Practice Details

Get Directions