$template_context Authorized step context. */ if ( ! defined( 'ABSPATH' ) ) { exit; } $step_data = $template_context['step_data']; $existing_resources = isset( $step_data['existing_resources'] ) && is_array( $step_data['existing_resources'] ) ? $step_data['existing_resources'] : array(); $booking_resources = isset( $step_data['booking_resources'] ) && is_array( $step_data['booking_resources'] ) ? $step_data['booking_resources'] : array(); $existing_resource_updates = isset( $step_data['existing_resource_updates'] ) && is_array( $step_data['existing_resource_updates'] ) ? $step_data['existing_resource_updates'] : array(); $can_create_resources = ! empty( $step_data['can_create_resources'] ); $pricing_available = ! empty( $step_data['pricing_available'] ); $media_upload_available = ! empty( $step_data['media_upload_available'] ); $currency_symbol = isset( $step_data['currency_symbol'] ) ? (string) $step_data['currency_symbol'] : '$'; $max_resource_drafts = isset( $step_data['max_resource_drafts'] ) ? absint( $step_data['max_resource_drafts'] ) : 0; $booking_resources_json = wp_json_encode( $booking_resources ); $booking_resources_json = false === $booking_resources_json ? '[]' : $booking_resources_json; $existing_resources_json = wp_json_encode( $existing_resources ); $existing_resources_json = false === $existing_resources_json ? '[]' : $existing_resources_json; $existing_updates_json = wp_json_encode( $existing_resource_updates ); $existing_updates_json = false === $existing_updates_json ? '[]' : $existing_updates_json; ?>

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