$template_context Authorized step context. */ if ( ! defined( 'ABSPATH' ) ) { exit; } $step_data = $template_context['step_data']; $services = isset( $step_data['services'] ) && is_array( $step_data['services'] ) ? $step_data['services'] : array(); $inactive_service_ids = isset( $step_data['inactive_service_ids'] ) && is_array( $step_data['inactive_service_ids'] ) ? array_values( array_map( 'absint', $step_data['inactive_service_ids'] ) ) : array(); $pricing_available = ! empty( $step_data['pricing_available'] ); $currency_symbol = isset( $step_data['currency_symbol'] ) ? (string) $step_data['currency_symbol'] : '$'; $max_services = isset( $step_data['max_services'] ) ? absint( $step_data['max_services'] ) : 20; $services_json = wp_json_encode( $services ); $services_json = false === $services_json ? '[]' : $services_json; $inactive_service_ids_json = wp_json_encode( $inactive_service_ids ); $inactive_service_ids_json = false === $inactive_service_ids_json ? '[]' : $inactive_service_ids_json; ?>

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

>