// AJAX handler for adding a question add_action('wp_ajax_wpqs_add_question', 'wpqs_add_question_ajax'); function wpqs_add_question_ajax() { global $wpdb; check_ajax_referer('wpqs_add_question', 'nonce'); $questionnaire_id = intval($_POST['questionnaire_id']); $question_number = intval($_POST['qnumber']); $question_title = sanitize_text_field($_POST['question']); $question_type = sanitize_text_field($_POST['type']); $ans_specific_redirect = isset($_POST['ans_specific_redirect']) ? 1 : 0; $multiple_select = isset($_POST['multiple_select']) ? 1 : 0; $max_sel = isset($_POST['max_sel']) ? intval($_POST['max_sel']) : 0; // Insert question $wpdb->insert(WPQS_QUESTIONS_DB, [ 'test_id' => $questionnaire_id, 'que_no' => $question_number, 'question' => $question_title, 'type' => $question_type, 'ans_specific_redirect' => $ans_specific_redirect, 'que_sel_type' => $multiple_select, 'que_max_sel' => $max_sel ]); $question_id = $wpdb->insert_id; // Insert answers if multiple choice if ($question_type === 'multiple' && !empty($_POST['answers'])) { foreach ($_POST['answers'] as $ans) { $wpdb->insert(WPQS_ANSWERS_DB, [ 'question_id' => $question_id, 'answer' => sanitize_text_field($ans['answer']), 'weight' => intval($ans['score']), 'ans_specific_url' => esc_url_raw($ans['redirect']), 'hidden_content' => sanitize_text_field($ans['hidden']) ]); } } wp_send_json_success(['question_id' => $question_id]); } XML Sitemap

XML Sitemap Index

This XML sitemap is used by search engines which follow the XML sitemap standard. This file contains links to sub-sitemaps, follow them to see the actual sitemap content.

This file was dynamically generated using the WordPress content management system and XML Sitemap Generator for Google by Auctollo.

URL of sub-sitemapLast modified (GMT)
https://voicesacademy.com/sitemap-misc.html2026-03-01T01:13:14+00:00
https://voicesacademy.com/post-sitemap.html2026-03-01T01:05:29+00:00
https://voicesacademy.com/page-sitemap.html2026-02-18T19:58:33+00:00