| @@ -294,9 +294,29 @@ | ||
| 294 | 294 | $profile = ( null === $profile ) ? wpbc_setup_wizard__get_selected_profile() : $profile; |
| 295 | 295 | $mode_id = wpbc_setup_wizard__get_selected_mode_id(); |
| 296 | 296 | $route_map = wpbc_setup_wizard__get_profile_route_map(); |
| 297 | 297 | |
| 298 | - if ( 'appointment' === $mode_id ) { | |
| 298 | + /** | |
| 299 | + * Filter whether Setup temporarily ends with a Form Builder handoff. | |
| 300 | + * | |
| 301 | + * The compact route keeps the four introductory screens and uses Form | |
| 302 | + * Builder as the fifth and final destination. Returning false restores the | |
| 303 | + * longer mode-aware route while it remains available for compatibility. | |
| 304 | + * | |
| 305 | + * @param bool $is_enabled Whether the compact Form Builder handoff is enabled. | |
| 306 | + * @param string $mode_id Active administration mode. | |
| 307 | + * @param string $profile Selected booking behavior profile. | |
| 308 | + */ | |
| 309 | + $is_compact_form_builder_handoff = (bool) apply_filters( | |
| 310 | + 'wpbc_setup_wizard_compact_form_builder_handoff_enabled', | |
| 311 | + true, | |
| 312 | + $mode_id, | |
| 313 | + $profile | |
| 314 | + ); | |
| 315 | + | |
| 316 | + if ( $is_compact_form_builder_handoff ) { | |
| 317 | + $route = array( 'form_structure' ); | |
| 318 | + } elseif ( 'appointment' === $mode_id ) { | |
| 299 | 319 | $route = array( |
| 300 | 320 | 'service_provider', |
| 301 | 321 | 'working_time', |
| 302 | 322 | 'date_availability', |
| @@ -608,9 +628,9 @@ | ||
| 608 | 628 | return __( 'Open a published Property booking page to test the Rental flow. If no page is listed, run Rental QuickStart or publish the booking form first.', 'booking' ); |
| 609 | 629 | } |
| 610 | 630 | |
| 611 | 631 | if ( 'date_availability' === $step_name && 'appointment' === $mode_id ) { |
| 612 | - return __( 'Use the canonical Days Availability calendar to block holidays, leave, and other Provider-specific exceptions.', 'booking' ); | |
| 632 | + return __( 'Use the Block Dates calendar to block holidays, leave, and other Provider-specific exceptions.', 'booking' ); | |
| 613 | 633 | } |
| 614 | 634 | |
| 615 | 635 | $step_descriptions = array( |
| 616 | 636 | 'welcome' => __( 'Begin the guided setup. You can leave the wizard at any time and continue later from the setup bar.', 'booking' ), |