[
“type” => “radio”,
“title” => “What is your gender?”,
“options” => [“Male”, “Female”, “Other”]
],
“question_2” => [
“type” => “radio”,
“title” => “What is your age range?”,
“options” => [“18-29”, “30-39”, “40-49”, “50-59”, “60+”]
],
“question_3” => [
“type” => “radio”,
“title” => “How would you rate your overall energy levels?”,
“options” => [“Very Low”, “Low”, “Moderate”, “High”, “Very High”]
],
“question_4” => [
“type” => “radio”,
“title” => “How often do you exercise per week?”,
“options” => [“Never”, “1-2 times”, “3-4 times”, “5-6 times”, “Daily”]
],
“question_5” => [
“type” => “radio”,
“title” => “How would you describe your sleep quality?”,
“options” => [“Very Poor”, “Poor”, “Fair”, “Good”, “Excellent”]
],
“question_6” => [
“type” => “radio”,
“title” => “Do you have any chronic health conditions?”,
“options” => [“None”, “Diabetes”, “Hypertension”, “Heart Disease”, “Multiple conditions”]
],
“question_7” => [
“type” => “radio”,
“title” => “How often do you feel stressed?”,
“options” => [“Never”, “Rarely”, “Sometimes”, “Often”, “Always”]
],
“question_8” => [
“type” => “radio”,
“title” => “How would you rate your overall mood?”,
“options” => [“Very Poor”, “Poor”, “Neutral”, “Good”, “Excellent”]
],
“question_9” => [
“type” => “radio”,
“title” => “Do you take any medications or supplements?”,
“options” => [“None”, “Vitamins only”, “Prescription medications”, “Both vitamins and medications”, “Other supplements”]
],
“question_10” => [
“type” => “radio”,
“title” => “How often do you have regular medical checkups?”,
“options” => [“Never”, “Every few years”, “Annually”, “Every 6 months”, “As needed only”]
]
]);
// Update production database
$result = $wpdb->update(
‘wp_ennu_assessment_configs’,
[‘questions’ => $working_questions],
[‘assessment_type’ => ‘health’]
);
if ($result !== false) {
echo “✅ Health questions updated successfully\n”;
// Clear all caches
wp_cache_flush();
$wpdb->query(“DELETE FROM wp_options WHERE option_name LIKE ‘_transient_%'”);
// Clear LiteSpeed cache
if (function_exists(‘litespeed_purge_all’)) {
litespeed_purge_all();
}
echo “✅ All caches cleared\n”;
echo “✅ HEALTH ASSESSMENT SHOULD NOW WORK\n”;
} else {
echo “❌ Database update failed: ” . $wpdb->last_error . “\n”;
}
?>