$template_context Authorized step context. */ if ( ! defined( 'ABSPATH' ) ) { exit; } $step_data = isset( $template_context['step_data'] ) && is_array( $template_context['step_data'] ) ? $template_context['step_data'] : array(); $draft_field_name = isset( $step_data['draft_field_name'] ) ? sanitize_key( (string) $step_data['draft_field_name'] ) : 'start_end_times'; $draft_values = isset( $step_data['draft_values'] ) && is_array( $step_data['draft_values'] ) ? $step_data['draft_values'] : array(); $editor_title = isset( $step_data['editor_title'] ) ? sanitize_text_field( (string) $step_data['editor_title'] ) : __( 'Set booking times', 'booking' ); $editor_description = isset( $step_data['editor_description'] ) ? sanitize_text_field( (string) $step_data['editor_description'] ) : __( 'Choose the time options customers can use when booking.', 'booking' ); $validation_rule = isset( $step_data['validation_rule'] ) ? sanitize_key( (string) $step_data['validation_rule'] ) : 'independent_lists'; $list_definitions = isset( $step_data['list_definitions'] ) && is_array( $step_data['list_definitions'] ) ? $step_data['list_definitions'] : array(); $copy_action = isset( $step_data['copy_action'] ) && is_array( $step_data['copy_action'] ) ? $step_data['copy_action'] : array(); $interval_options = isset( $step_data['interval_options'] ) && is_array( $step_data['interval_options'] ) ? $step_data['interval_options'] : array(); $max_times_per_list = isset( $step_data['max_times_per_list'] ) ? absint( $step_data['max_times_per_list'] ) : 288; $time_increment = isset( $step_data['time_increment'] ) ? absint( $step_data['time_increment'] ) : 5; $draft_values_json = wp_json_encode( $draft_values ); $draft_values_json = false === $draft_values_json ? '{}' : $draft_values_json; $field_error_id = 'wpbc-setup-wizard-' . str_replace( '_', '-', $draft_field_name ) . '-error'; ?>

render( 'settings-hint', array( 'settings_hint' => $template_context['settings_hint'] ) ); ?>
$raw_list_definition ) : ?>