Quiz and Survey Master (QSM) 11.3.2 has 145 actions and 283 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Quiz and Survey Master (QSM) fires an action
add_action( 'wpml_register_single_string', function( $domain, $translation_slug, $translation_text ) {
// Your code runs here.
}, 10, 3 );
// Change a value Quiz and Survey Master (QSM) is about to use
add_filter( 'qmn_begin_quiz_form', function( $value, $options, $quiz_data ) {
// Change $value here.
return $value;
}, 10, 3 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Hook: qsm_quiz_form_content */ apply_filters( 'qmn_begin_quiz_form', '', $options, $quiz_data ); -
/** * Hook: qsm_before_end_quiz_form */ apply_filters( 'qmn_end_quiz_form', '', $options, $quiz_data ); -
/** * Prepare Quiz Options */ apply_filters( 'qsm_quiz_wizard_settings_option_save', $quiz_options ); -
/** * Register the string for translation */ do_action( 'wpml_register_single_string', $domain, $translation_slug, $translation_text ); -
/** * Filters for filtering the results text after emails are sent. */ apply_filters( 'qmn_after_send_user_email', $result_display, $qmn_quiz_options, $qmn_array_for_variables ); -
/** * Hook to filter answers array */ apply_filters( 'qmn_date_review', $return_array, $answers ); -
/** * Hook to filter answers array */ apply_filters( 'qmn_drop_down_review', $return_array, $answers ); -
/** * Hook to filter answers array */ apply_filters( 'qmn_file_upload_review', $return_array, $answers ); -
/** * Hook to filter answers array */ apply_filters( 'qmn_fill_blank_review', $return_array, $answers ); -
/** * Hook to filter answers array */ apply_filters( 'qmn_horizontal_multiple_choice_review', $return_array, $answers ); -
/** * Hook to filter answers array */ apply_filters( 'qmn_horizontal_multiple_response_review', $return_array, $answers ); -
/** * Hook to filter answers array */ apply_filters( 'qmn_large_open_review', $return_array, $answers ); -
/** * Hook to filter answers array */ apply_filters( 'qmn_multiple_response_review', $return_array, $answers ); -
/** * Hook to filter answers array */ apply_filters( 'qmn_number_review', $return_array, $answers ); -
/** * Hook to filter answers array */ apply_filters( 'qmn_polar_review', $return_array, $answers ); -
/** * Hook to filter answers array */ apply_filters( 'qmn_small_open_review', $return_array, $answers ); -
/** * Filter the ability categories before registration. */ apply_filters( 'qsm_ability_categories', $categories ); -
/** * Filter the settings of a quiz created through the create-quiz ability. */ apply_filters( 'qsm_ability_create_quiz_settings', array( 'quiz_options' => $quiz_options, 'contact_form' => $contact_form, ), $input ); -
/** * Filter the ability definitions before registration. */ apply_filters( 'qsm_ability_definitions', $this->get_ability_definitions() ); -
/** * Filter the input before ability execution. */ apply_filters( 'qsm_ability_input', $input, $ability_name ); -
/** * Filter whether an ability is exposed through the MCP Adapter's default * server. */ apply_filters( 'qsm_ability_mcp_public', true, $ability_name ); -
/** * Filter the output after ability execution. */ apply_filters( 'qsm_ability_output', $result, $input, $ability_name ); -
/** * Filter the permission check result. */ apply_filters( 'qsm_ability_permission', $has_permission, $ability_name, $input ); -
/** * Action fired after ability execution. */ do_action( 'qsm_after_ability_execute', $result, $input, $ability_name ); -
/** * Action fired before ability execution. */ do_action( 'qsm_before_ability_execute', $input, $ability_name ); -
/** * Added custom criterias/operators to the email? Use this filter to check if * the condition passed. If it fails your conditions, return false to prevent * the email from sending. If it passes your condition or is not your custom * criterias or operators, then return the value as-is. DO NOT RETURN TRUE IF * IT PASSES THE CONDITION!!! The value may have been set to false when failing * a previous condition. */ apply_filters( 'qsm_email_condition_check', $show, $condition, $response_data ); -
/** * Filters the input units. */ apply_filters( 'qsm_input_units', $unit_options ); -
/** * Filter how many pre-flight login checks a client IP may make before this * endpoint stops answering and defers to wp-login.php. */ apply_filters( 'qsm_login_attempt_limit', 20 ); -
/** * Filter the window, in seconds, over which failed pre-flight login checks are * counted for a client IP. */ apply_filters( 'qsm_login_attempt_window', 15 * MINUTE_IN_SECONDS ); -
/** * Filter the client IP used to throttle failed login pre-flight checks. */ apply_filters( 'qsm_login_client_ip', $ip ); -
/** * Hook: qsm_pagination_content */ do_action( 'qsm_pagination_content', $quiz_id, $renderer, $args ); -
/** * Hook: qsm_pagination_header_content */ do_action( 'qsm_pagination_header_content', $quiz_id, $renderer, $args ); -
/** * Fires when a quiz ID's out-of-table data is discarded. */ do_action( 'qsm_purge_quiz_state', $quiz_id ); -
/** * Filter the TinyMCE settings for the QSM question / rich-answer editors. */ apply_filters( 'qsm_question_editor_settings', $settings, $context ); -
/** * Main hook that renders all quiz elements in priority order */ do_action( 'qsm_render_quiz_elements', $this ); -
/** * Filter to modify email headers. */ apply_filters( 'qsm_send_results_email_headers', $headers, $response_data ); -
/** * Filter Quiz Options before Quiz Display */ apply_filters( 'qsm_shortcode_quiz_options', $qmn_quiz_options ); -
/** * Filter Answers of specific question before display */ apply_filters( 'qsm_single_question_answers', $answers, $question, $quiz_options ); -
/** * Filter allowed variables for Text Tab options. */ apply_filters( 'qsm_text_allowed_variables', $quiz_text_arr[ $key ]['variables'], $key ); -
apply_filters( 'mlw_qmn_template_variable_results_page', $template, $results_array ); -
apply_filters( 'mlw_qmn_template_variable_quiz_page', wpautop( $message_before ), $quiz_data ); -
apply_filters( 'qsm_answer_wrapper_class', '', $answer, $id ); -
apply_filters( 'qsm_question_addlabel', $answer_index, $answer, count($answers) ); -
apply_filters( 'qsm_filter_feature_image_size', 'full', $question_id ); -
apply_filters( 'qsm_section_setting_text', $mlwQuizMasterNext->quiz_settings->get_section_setting( $section, $setting, $default ) ); -
apply_filters( 'qsm_load_questions_ids', $question_ids, $quiz_id, $quiz_options ); -
apply_filters( 'qsm_multiple_choice_other_option_classes', $other_option_class, $mlw_answer_total, $id, $answers ); -
do_action( 'mlw_qmn_end_quiz_section' ); -
apply_filters( 'qmn_polar_display_front', '', $id, $question, $answers ); -
do_action( 'qsm_after_begin_message', $options, $quiz_data ); -
do_action( 'qsm_after_question', $question ); -
do_action( 'qsm_before_delete_quiz', $quiz_id ); -
apply_filters( 'qsm_contact_text_field_value', $default_value, $field['use'], $quiz_options ); -
apply_filters( 'qsm_horizontal_multiple_choice_classes', $mlw_class, $id ); -
apply_filters( 'qsm_horizontal_multiple_choice_display_before', $answers, $id, $question ); -
do_action( 'qsm_question_deleted', $question_id ); -
apply_filters( 'qsm_total_pages_count', $text_c, $pages_count, $total_pages_count ); -
apply_filters( 'wpml_translate_single_string', $translation_text, $domain, $translation_slug ); -
apply_filters( "{$this->identifier}_cron_interval", 5 ); -
apply_filters( 'qmn_accept_display_front', '', $id, $question, $answers ); -
apply_filters( 'qmn_after_comment_section', '', $options, $quiz_data ); -
apply_filters( 'qmn_answer_array', array( $question_text, htmlspecialchars( $user_answer, ENT_QUOTES ), htmlspecialchars( $correct_answer, ENT_QUOTES ), $comment, 'user_answer' => $user_answer_array, 'correct_answer' => $correct_answer_array, 'correct' => $correct_status, 'id' => $question['question_id'], 'points' => $answer_points, 'category' => $question['category'], 'multicategories' => $question['multicategories'], 'question... ); -
apply_filters( 'qmn_before_comment_section', '', $options, $quiz_data ); -
apply_filters( 'qmn_before_error_message', '', $options, $quiz_data ); -
apply_filters( 'qmn_begin_quiz', '', $options, $quiz_data ); -
apply_filters( 'qmn_begin_quiz_options', $options, $quiz_data ); -
apply_filters( 'qmn_begin_quiz_questions', '', $options, $quiz_data ); -
apply_filters( 'qmn_begin_shortcode', $return_display, $qmn_quiz_options, $qmn_array_for_variables, $shortcode_args ); -
apply_filters( 'qmn_captcha_display_front', '', $id, $question, $answers ); -
apply_filters( 'qmn_date_display_front', '', $id, $question, $answers ); -
apply_filters( 'qmn_drop_down_display_front', '', $id, $question, $answers ); -
apply_filters( 'qmn_end_quiz', '', $options, $quiz_data ); -
apply_filters( 'qmn_end_shortcode', $return_display, $qmn_quiz_options, $qmn_array_for_variables, $shortcode_args ); -
apply_filters( 'qmn_file_upload_display_front', '', $id, $question, $answers ); -
apply_filters( 'qmn_fill_blank_display_front', '', $id, $question, $answers ); -
apply_filters( 'qmn_horizontal_multiple_choice_display_front', '', $id, $question, $answers ); -
apply_filters( 'qmn_horizontal_multiple_choice_question_display', '', $id, $question, $answers ); -
apply_filters( 'qmn_horizontal_multiple_response_display_front', '', $id, $question, $answers ); -
apply_filters( 'qmn_json_data', $qmn_json_data, $qmn_quiz_options, $qmn_array_for_variables, $shortcode_args ); -
apply_filters( 'qmn_large_open_display_front', '', $id, $question, $answers ); -
apply_filters( 'qmn_multiple_choice_display_front', '', $id, $question, $answers ); -
apply_filters( 'qmn_multiple_choice_review_before', $current_question, $id, $question, $answers ); -
apply_filters( 'qmn_multiple_response_display_front', '', $id, $question, $answers ); -
apply_filters( 'qmn_number_display_front', '', $id, $question, $answers ); -
apply_filters( 'qmn_polar_display_front_before', '', $id, $question, $answers ); -
apply_filters( 'qmn_results_array', $results_array, $question ); -
apply_filters( 'qmn_small_open_display_front', '', $id, $question, $answers ); -
apply_filters( 'qmn_text_block_display_front', '', $id, $question, $answers ); -
do_action( 'qsm_action_before_page', $qpage_id, $qpage ); -
do_action( 'qsm_after_all_section' ); -
do_action( 'qsm_after_end_quiz_form', $options, $quiz_data, $shortcode_args ); -
do_action( 'qsm_after_options' ); -
do_action( 'qsm_after_welcome_page', $options, $quiz_data, 'single' ); -
apply_filters( 'qsm_allow_html_question_title_after', $allow_html, $question_id ); -
apply_filters( 'qsm_auto_page_begin_pagination', '', ( $current_page_number - 1 ), $qmn_quiz_options, $qmn_quiz_questions ); -
do_action( 'qsm_before_end_quiz_form', $options, $quiz_data, $shortcode_args ); -
do_action( 'qsm_before_question_title', $question, $question_type, $new_question_title, $question_id ); -
apply_filters( 'qsm_check_advance_polar_show_status', $show, $id ); -
apply_filters( 'qsm_check_show_answer_drop_down', $show, $id, $question, $answers ); -
do_action( 'qsm_contact_fields_end' ); -
apply_filters( 'qsm_display_before_form', '', $options, $quiz_data ); -
apply_filters( 'qsm_display_pages', $pages, $options->quiz_id, $options ); -
do_action( 'qsm_enqueue_script_style', $qmn_quiz_options ); -
apply_filters( 'qsm_fill_in_blanks_input_after', $input_text, $id, $question, $answers, $mlw_require_class ); -
apply_filters( 'qsm_horizontal_multiple_response_classes', $mlw_class, $id ); -
apply_filters( 'qsm_json_error_message', $qmn_json_data, $options ); -
apply_filters( 'qsm_load_questions_filter', $questions, $quiz_id, $quiz_options ); -
apply_filters( 'qsm_multiple_choice_display_after_loop', ' ', $id, $question, $answers ); -
apply_filters( 'qsm_multiple_choice_display_loop', ' ', $id, $question, $answers ); -
apply_filters( 'qsm_multiple_choice_horizontal_display_loop', '', $id, $question, $answer, $mlw_answer_total ); -
apply_filters( 'qsm_multiple_response_classes', $mlw_class, $id ); -
apply_filters( 'qsm_multiple_response_horizontal_display_loop', '', $id, $question, $answer, $mlw_answer_total ); -
apply_filters( 'qsm_pagination_header_elements', array(), $this->options->quiz_id, $this ); -
apply_filters( 'qsm_polar_class', $polar_class . $show_answer_option ); -
apply_filters( 'qsm_question_advanced_option', $advanced_question_option ); -
apply_filters( 'qsm_question_category_option', $category_question_option ); -
apply_filters( 'qsm_question_description_before', $question_description, $question_type, $question_id ); -
do_action( 'qsm_question_editor_button_section_after' ); -
do_action( 'qsm_question_form_fields', $quiz_id ); -
do_action( 'qsm_question_form_fields_side', $quiz_id ); -
apply_filters( 'qsm_question_format_option', $simple_question_option ); -
apply_filters( 'qsm_question_title_before', $new_question_title, $question_type, $question_id ); -
do_action( 'qsm_question_title_func_after', $question, $question_type, $new_question_title, $question_id ); -
do_action( 'qsm_question_title_function_before', $question, $question_type, $new_question_title, $question_id ); -
apply_filters( 'qsm_question_title_function_before', $question, $answers, $id ); -
apply_filters( 'qsm_question_type_description', $description_arr ); -
apply_filters( 'qsm_quiz_option_before', $qmn_quiz_options ); -
apply_filters( 'qsm_quiz_options_before', $qmn_quiz_options, $qmn_array_for_variables, $shortcode_args ); -
apply_filters( 'qsm_rest_api_filter_question_data', $question_data, $question, $request ); -
apply_filters( 'qsm_result_page_custom_default_template', $result_page_default_template, $total_answers, $questions, $answer ); -
apply_filters( 'qsm_results_page_condition_check', $show, $condition, $response_data ); -
do_action( 'qsm_saved_question_data', $question_id, $request ); -
do_action( 'qsm_saved_quiz_settings', $quiz_id, 'quiz_options', $quiz_options ); -
apply_filters( 'qsm_shortcode_before', $shortcode_args, $atts ); -
apply_filters( 'qsm_show_next_button', true, $quiz_id, $args ); -
apply_filters( 'qsm_show_previous_button', true, $quiz_id, $args ); -
apply_filters( 'qsm_show_start_button', true, $quiz_id, $args ); -
apply_filters( 'qsm_show_submit_button', true, $quiz_id, $args ); -
apply_filters( 'qsm_user_email_attachments', $attachments, $qmn_array_for_variables ); -
apply_filters( "{$this->identifier}_default_time_limit", 20 ); -
apply_filters( "{$this->identifier}_memory_exceeded", $return ); -
apply_filters( "{$this->identifier}_queue_lock_time", $lock_duration ); -
apply_filters( "{$this->identifier}_time_exceeded", $return ); -
apply_filters( 'before_max_min_points_conditions', $max_value_array, $question['answers'], $question_type ); -
apply_filters( 'get_active_quiz_theme_path', $theme_path, $quiz_id, $active_themes ); -
apply_filters( 'https_local_ssl_verify', false ); -
apply_filters( 'mlw_qmn_admin_results_page_column_content', '', $mlw_quiz_info, $k ); -
apply_filters( 'mlw_qmn_admin_results_page_headings', array( 'score' => __( 'Score', 'quiz-master-next' ), 'time_complete' => __( 'Time To Complete', 'quiz-master-next' ), 'name' => __( 'Name', 'quiz-master-next' ), 'business' => __( 'Business', 'quiz-master-next' ), 'email' => __( 'Email', 'quiz-master-next' ), 'phone' => __( 'Phone', 'quiz-master-next' ), 'user' => __( 'User', 'quiz-master-next' ), 'start_date' => __( 'Start Date', 'quiz-master-... ); -
apply_filters( 'mlw_qmn_admin_results_page_result', $v['content'][ $x ], $quiz_infos[ $x ], $k ); -
do_action( 'mlw_qmn_load_results_page', $results_id, $qmn_quiz_options->quiz_settings ); -
apply_filters( 'mlw_qmn_template_variable_results_array', array( 'quiz_id' => $results_data->quiz_id, 'quiz_name' => $results_data->quiz_name, 'quiz_system' => $results_data->quiz_system, 'form_type' => $results_data->form_type, 'user_name' => $results_data->name, 'user_business' => $results_data->business, 'user_email' => $results_data->email, 'user_phone' => $results_data->phone, 'user_id' => $results_data->user, 'timer' => isset($results[0]) ? $res... ); -
apply_filters( 'qmn_admin_results_tabs', $this->admin_results_tabs ); -
apply_filters( 'qmn_after_check_answers', $result_display, $qmn_quiz_options, $qmn_array_for_variables ); -
apply_filters( 'qmn_after_check_comments', $result_display, $qmn_quiz_options, $qmn_array_for_variables ); -
apply_filters( 'qmn_after_results_text', $result_display, $qmn_quiz_options, $qmn_array_for_variables ); -
apply_filters( 'qmn_after_send_admin_email', $result_display, $qmn_quiz_options, $qmn_array_for_variables ); -
apply_filters( 'qmn_after_social_media', $result_display, $qmn_quiz_options, $qmn_array_for_variables ); -
apply_filters( 'qmn_begin_results', $result_display, $qmn_quiz_options, $qmn_array_for_variables ); -
apply_filters( 'qmn_captcha_varification_failed_msg', __( 'Captcha verification failed.', 'quiz-master-next' ), $qmn_quiz_options, $qmn_array_for_variables ); -
apply_filters( 'qmn_drop_down_review_before', $current_question, $id, $question, $answers ); -
apply_filters( 'qmn_email_template_variable_results', $content, $response_data ); -
apply_filters( 'qmn_end_results', $result_display, $qmn_quiz_options, $qmn_array_for_variables ); -
apply_filters( 'qmn_filter_email_content', $qmn_array_for_variables, $results_id ); -
apply_filters( 'qmn_log_post_type_args', $log_args ); -
apply_filters( 'qmn_log_types', $terms ); -
apply_filters( 'qmn_multiple_choice_review', $return_array, $answers ); -
apply_filters( 'qmn_opt_in_review', $return_array, $answers ); -
apply_filters( 'qmn_polar_display_result_page', $question_display, $id, $question, $answers, $answer ); -
do_action( 'qmn_quiz_created', $new_quiz ); -
do_action( 'qmn_quiz_deleted', $quiz_id ); -
do_action( 'qmn_quiz_duplicated', $quiz_id, $mlw_new_id ); -
do_action( 'qmn_quiz_name_edited', $quiz_id ); -
apply_filters( 'qmn_quiz_setting_tabs', $this->settings_tabs ); -
apply_filters( 'qmn_quiz_taken_stats_load_stats', $stats, $type, $amount ); -
do_action( 'qmn_quiz_taken_stats_options' ); -
apply_filters( 'qmn_retake_quiz_button_before', $qmn_quiz_options ); -
apply_filters( 'qmn_returned_comments', $qmn_quiz_comments, $qmn_quiz_options, $qmn_array_for_variables ); -
apply_filters( 'qmn_returned_social_buttons', $social_display, $qmn_quiz_options, $qmn_array_for_variables ); -
apply_filters( 'qmn_variable_question_answers', $mlw_question_answer_display, $mlw_quiz_array, $question_obj ); -
apply_filters( 'qms_preferred_date_format', $preferred_date_format ); -
apply_filters( "qsm_ability_input_{$ability_name}", $input ); -
apply_filters( "qsm_ability_output_{$ability_name}", $result, $input ); -
apply_filters( "qsm_ability_permission_{$ability_name}", $has_permission, $input ); -
do_action( 'qsm_above_admin_results' ); -
do_action( 'qsm_action_quiz_page_attributes_fields' ); -
apply_filters( 'qsm_activate_theme_after', $quiz_id, $theme_id ); -
apply_filters( 'qsm_activate_theme_before', true, $quiz_id, $theme_id ); -
do_action( 'qsm_add_action_links_before' ); -
do_action( 'qsm_add_after_default_theme' ); -
do_action( 'qsm_add_after_themes' ); -
apply_filters( 'qsm_add_quiz_after', ! empty( $add_button ) ? $add_button : '' ); -
do_action( 'qsm_add_style_section_content' ); -
do_action( 'qsm_admin_after_single_answer_template' ); -
apply_filters( 'qsm_admin_before_results_details_page_link', $link, $tab['slug'] ); -
apply_filters( 'qsm_admin_contact_label_disallow_html', true ); -
do_action( 'qsm_admin_dashboard_compatibility_after' ); -
apply_filters( 'qsm_admin_email_attachments', $attachments, $response_data ); -
apply_filters( 'qsm_admin_messages_after', $qsm_admin_messages ); -
do_action( 'qsm_admin_quiz_results_page_rowactions_after', $quiz_infos[ $x ] ); -
do_action( 'qsm_admin_quiz_results_page_rowactions_before', $quiz_infos[ $x ] ); -
apply_filters( 'qsm_admin_result_page_before', $results_data ); -
apply_filters( 'qsm_admin_results_details_contact', "", $results_array ); -
apply_filters( 'qsm_admin_results_details_page_allow_html', false ); -
apply_filters( 'qsm_admin_results_details_timer_after', '', $mlw_qmn_results_array ); -
apply_filters( 'qsm_admin_results_page_disallow_html', true ); -
do_action( 'qsm_admin_results_quiz_name_after', $quiz_infos[ $x ] ); -
apply_filters( 'qsm_admin_results_table_row_class', '', $quiz_infos[ $x ] ); -
do_action( 'qsm_admin_single_answer_option_fields' ); -
do_action( 'qsm_admin_single_answer_option_fields_before' ); -
do_action( "qsm_after_ability_execute_{$ability_name}", $result, $input ); -
do_action( 'qsm_after_first_page', $quiz_id, $args ); -
do_action( 'qsm_after_first_page_content', $quiz_id, $args ); -
do_action( 'qsm_after_last_page', $quiz_id, $args ); -
do_action( 'qsm_after_last_page_content', $quiz_id, $args ); -
do_action( 'qsm_after_pagination_header_content', $quiz_id, $renderer, $args ); -
do_action( 'qsm_after_pagination_header_render', $quiz_id, $args ); -
do_action( 'qsm_after_pagination_render', $quiz_id, $args ); -
apply_filters( 'qsm_after_result_submit_answers', $question_with_answer_text, $form_type, $is_answer_correct, $total_answers, $answers_from_response, $grading_system, $question_settings ); -
do_action( 'qsm_after_results_page', $response_data, $page_index ); -
do_action( 'qsm_after_send_email_label' ); -
do_action( 'qsm_after_sending_email', $response_data, $to_email, $subject ); -
apply_filters( 'qsm_alert_messages', $alert_list ); -
apply_filters( 'qsm_allow_numeric_result_id', false, $token ); -
apply_filters( 'qsm_answers_before_save', $sanitize_answers, $answers, $data, $settings ); -
apply_filters( 'qsm_array_for_variables_after_db_query', $qmn_array_for_variables, $qmn_quiz_options ); -
apply_filters( 'qsm_array_for_variables_before_db_query', $qmn_array_for_variables ); -
apply_filters( 'qsm_auto_page_begin_row', '', ( $current_page_number - 1 ), $qmn_quiz_options, $qmn_quiz_questions ); -
do_action( "qsm_before_ability_execute_{$ability_name}", $input ); -
do_action( 'qsm_before_admin_show_results_list', $get_subtabs, $current_subtab ); -
do_action( 'qsm_before_delete_result', $mlw_delete_results_id ); -
do_action( 'qsm_before_first_page', $quiz_id, $args ); -
do_action( 'qsm_before_first_page_content', $quiz_id, $args ); -
do_action( 'qsm_before_last_page', $quiz_id, $args ); -
do_action( 'qsm_before_last_page_content', $quiz_id, $args ); -
do_action( 'qsm_before_pagination_header_content', $quiz_id, $renderer, $args ); -
do_action( 'qsm_before_pagination_header_render', $quiz_id, $args ); -
do_action( 'qsm_before_pagination_render', $quiz_id, $args ); -
do_action( 'qsm_before_results_page' ); -
do_action( 'qsm_below_admin_results', $results_array ); -
apply_filters( 'qsm_can_view_result', $can_view_result, $id, $result_data, $current_user_id ); -
apply_filters( 'qsm_category_points', $return_points, $category_name, $mlw_quiz_array ); -
apply_filters( 'qsm_check_answers_results', array( 'total_points' => $points_earned, 'total_score' => $total_score, 'total_correct' => $total_correct, 'total_questions' => $total_questions, 'question_answers_display' => '', 'question_answers_array' => $question_data, 'total_possible_points' => $total_possible_points, 'total_attempted_questions' => $attempted_question, 'minimum_possible_points' => $minimum_possible_points, ), $options, $q... ); -
apply_filters( 'qsm_contact_checkbox_field_class', $class, $field['use'] ); -
apply_filters( 'qsm_contact_date_field_class', $class, $field['use'] ); -
apply_filters( 'qsm_contact_email_field_class', $class, $field['use'] ); -
do_action( 'qsm_contact_form_location_after', $quiz_options ); -
do_action( 'qsm_contact_form_settings_after' ); -
apply_filters( 'qsm_contact_number_field_class', $class, $field['use'] ); -
apply_filters( 'qsm_contact_number_field_value', $default_value, $field['use'] ); -
apply_filters( 'qsm_contact_radio_field_value', $default_value, $field['use'] ); -
apply_filters( 'qsm_contact_select_field_value', $default_value, $field['use'] ); -
apply_filters( 'qsm_contact_tab_allowed_settings', $allowed_keys ); -
apply_filters( 'qsm_contact_text_field_class', $class, $field['use'] ); -
apply_filters( 'qsm_contact_url_field_class', $class, $field['use'] ); -
apply_filters( 'qsm_contact_url_field_value', $default_value, $field['use'] ); -
do_action( 'qsm_create_quiz_addon_option_buttons', $installer_activated, $invalid_and_expired, $addon_lookup, $addon_slug, $selected_bundle, $is_installed, $is_activated, $addon_link, $addon_status ); -
do_action( 'qsm_create_quiz_script_style' ); -
do_action( 'qsm_create_quiz_theme_option_buttons', $installer_activated, $invalid_and_expired, $addon_lookup, $theme_slug, $selected_bundle, $is_installed, $is_activated, $theme_demo ); -
apply_filters( 'qsm_default_texts', $defaults ); -
apply_filters( 'qsm_default_user_capabilities', self::qsm_role_capabilities( $rolename ), $user ); -
apply_filters( 'qsm_do_show_last_page_filter', 0, $this->options ); -
do_action( 'qsm_email_condition_criteria' ); -
do_action( 'qsm_email_condition_operator' ); -
do_action( 'qsm_email_condition_value' ); -
do_action( 'qsm_email_extra_condition_category' ); -
do_action( 'qsm_email_extra_condition_fields' ); -
do_action( 'qsm_email_page_after', $quiz_id, $categories ); -
do_action( 'qsm_email_page_condition_category' ); -
do_action( 'qsm_email_page_content_before', $quiz_id, $categories ); -
do_action( 'qsm_email_page_content_buttons_after', $quiz_id, $categories ); -
do_action( 'qsm_email_page_more_settings_box_after' ); -
do_action( 'qsm_email_page_more_settings_box_before' ); -
do_action( 'qsm_email_page_settings_box_after' ); -
do_action( 'qsm_email_page_settings_box_before' ); -
apply_filters( 'qsm_email_templates_list_before', $template_from_script, $quiz_id ); -
apply_filters( 'qsm_enable_lazy_loading', true, $this->options->quiz_id ); -
apply_filters( 'qsm_extra_authentication_update_results_before', '', $qmn_quiz_options, $qmn_array_for_variables ); -
do_action( 'qsm_extra_contact_form_field_display', $field, $quiz_options, $index, $default_value ); -
do_action( 'qsm_extra_contact_form_field_type' ); -
do_action( 'qsm_extra_setting_fields' ); -
apply_filters( 'qsm_file_upload_mime_type', $mimes ); -
apply_filters( 'qsm_filter_quiz_page_attributes', $qpages, $pages ); -
apply_filters( 'qsm_first_page_classes', array( 'qsm-page', $animation_effect ), $quiz_id ); -
do_action( 'qsm_generate_question_option_after', $key, $single_option ); -
do_action( 'qsm_global_setting_field_after' ); -
do_action( 'qsm_global_settings_page_add_tab_after' ); -
do_action( 'qsm_global_settings_page_added_tab_content' ); -
apply_filters( 'qsm_is_answer_correct_choice_before', $is_answer_correct, $single_answer, $user_answer_array, $single_answer_key, $answers_from_response, $grading_system, $question_settings, $form_type ); -
apply_filters( 'qsm_last_page_classes', $last_page_class, $quiz_id, $args ); -
apply_filters( 'qsm_load_question', $question, $question_id ); -
apply_filters( 'qsm_load_questions', $question_array, $quiz_id ); -
apply_filters( 'qsm_load_questions_by_pages', $questions, $quiz_id ); -
apply_filters( 'qsm_load_setting_fields_before', $this->registered_fields[ $section ] ); -
apply_filters( 'qsm_max_min_points_conditions_result', $max_min_result, $question_required, $question ); -
apply_filters( 'qsm_multiple_choice_classes', $mlw_class, $id ); -
apply_filters( 'qsm_multiple_choice_display_before', $answers, $id, $question ); -
do_action( 'qsm_new_action_after_page', $pages_count, $page ); -
do_action( 'qsm_new_after_pagination_render', $this->options->quiz_id, $this->options, $this->quiz_data ); -
apply_filters( 'qsm_new_after_template_render', $output, $slug, $args ); -
do_action( 'qsm_new_before_pagination_render', $this->options->quiz_id, $this->options, $this->quiz_data ); -
do_action( 'qsm_new_before_template_render', $slug, $args ); -
apply_filters( 'qsm_new_locate_template', $located, $template_name, $template_path, $default_path ); -
apply_filters( 'qsm_next_button_attributes', '', $quiz_id, $args ); -
apply_filters( 'qsm_next_button_class', array( 'qsm-next-btn', 'qmn_btn', 'qsm-btn', 'qsm-next', 'mlw_qmn_quiz_link', 'mlw_next', 'mlw_custom_next', 'qsm-primary', 'qsm-next-btn-'.esc_attr($quiz_id), ), $quiz_id, $args ); -
apply_filters( 'qsm_next_button_text', $next_text, $quiz_id, $args ); -
apply_filters( 'qsm_nonce_failed_message', htmlspecialchars_decode( 'Nonce Validation failed!' ) ); -
do_action( 'qsm_options_email_tab_content_before' ); -
do_action( 'qsm_options_results_tab_content_before' ); -
apply_filters( 'qsm_pagination_attributes', '', $quiz_id, $renderer, $args ); -
apply_filters( 'qsm_pagination_classes', 'qsm-navigation qsm-pagination qmn_pagination border margin-bottom qsm-pagination-'.$quiz_id, $quiz_id, $renderer, $args ); -
apply_filters( 'qsm_pagination_element_priorities', array( 'page_counter' => 10, 'previous_button' => 20, 'progress_bar' => 30, 'start_button' => 40, 'next_button' => 50, 'submit_button' => 60, ), $this ); -
apply_filters( 'qsm_pagination_header_attributes', '', $quiz_id, $renderer, $args ); -
apply_filters( 'qsm_pagination_header_classes', 'qsm-pagination-header qsm-navigation-header', $quiz_id, $renderer, $args ); -
apply_filters( 'qsm_pagination_header_element_priorities', array( 'page_counter' => 10, 'previous_button' => 20, 'progress_bar' => 30, 'start_button' => 40, 'next_button' => 50, 'submit_button' => 60, ), $quiz_id, $this ); -
apply_filters( 'qsm_previous_button_attributes', '', $quiz_id, $args ); -
apply_filters( 'qsm_previous_button_class', array( 'qsm-previous-btn', 'qmn_btn', 'qsm-btn', 'qsm-previous', 'mlw_qmn_quiz_link', 'mlw_previous', 'qsm-secondary', 'qsm-previous-btn-'.esc_attr($quiz_id), ), $quiz_id, $args ); -
apply_filters( 'qsm_previous_button_text', $previous_text, $quiz_id, $args ); -
apply_filters( 'qsm_progressbar_render_mode', 'auto', $quiz_id, $options ); -
do_action( 'qsm_question_added', $question_id_loop, $values ); -
do_action( 'qsm_question_after', $mlw_question, $qmn_quiz_options, $mlw_qmn_section_count ); -
apply_filters( 'qsm_question_answers_template_variable', $mlw_question_answer_display, $mlw_quiz_array, $answer ); -
apply_filters( 'qsm_question_answers_template_variable_display_before', $display, $mlw_quiz_array, $qmn_question_answer_template, $questions, $qmn_questions, $answer, $qsm_question_cnt, $total_question_cnt ); -
apply_filters( 'qsm_question_bank_untranslated_question_types_map', $map ); -
do_action( 'qsm_question_before', $mlw_question, $qmn_quiz_options, $mlw_qmn_section_count ); -
do_action( 'qsm_question_controls_head' ); -
apply_filters( 'qsm_question_max_point', $question_max_point, $answer_points ); -
apply_filters( 'qsm_question_template_slug', $template_slug, $question_type, $args ); -
apply_filters( 'qsm_question_type_templates', $question_types ); -
do_action( 'qsm_question_updated', $question_id_loop, $values ); -
apply_filters( 'qsm_questions_answers_shortcode_to_text_question', $questions, $mlw_quiz_array, $answer, $qsm_question_cnt, $total_question_cnt ); -
apply_filters( 'qsm_quiz_actions_after', $actions, $post ); -
apply_filters( 'qsm_quiz_container_attributes', array( 'class' => $container_classes, 'data' => array( 'quiz-id' => esc_attr( $quiz_id ), ), ), $quiz_id, $quiz_data ); -
apply_filters( 'qsm_quiz_container_element_priorities', array( 'featured_image' => 5, 'quiz_form' => 10, 'navigation' => 20, ), $this ); -
apply_filters( 'qsm_quiz_form_attributes', '', $quiz_id, $options ); -
apply_filters( 'qsm_quiz_form_class_after', 'qsm-quiz-form qmn_quiz_form mlw_quiz_form', $quiz_id, $options ); -
do_action( 'qsm_quiz_form_content', $quiz_id, $renderer, $args ); -
apply_filters( 'qsm_quiz_form_content_priorities', array( 'pagination_header' => 3, 'error_message_top' => 10, 'quiz_top_marker' => 15, 'timer' => 25, 'first_page' => 30, 'quiz_pages' => 40, 'last_page' => 50, 'error_message_bottom' => 65, 'hidden_inputs' => 80, ), $this ); -
do_action( 'qsm_quiz_name_edited', $quiz_id, $quiz_name ); -
apply_filters( 'qsm_quiz_submission_section_before', $settings, $fields ); -
do_action( 'qsm_quiz_submitted', $results_array, $results_id, $qmn_quiz_options, $qmn_array_for_variables ); -
apply_filters( 'qsm_quiz_wizard_settings_option', $quiz_setting_option ); -
apply_filters( 'qsm_register_settings_before', $field_array ); -
apply_filters( 'qsm_replace_template_from_addon_or_theme', '', $template_name ); -
do_action( 'qsm_result_page_after', $quiz_id, $categories ); -
apply_filters( 'qsm_result_page_answer_text_with_no_answer', $question_with_answer_text, $total_answers, $questions, $answer ); -
do_action( 'qsm_result_page_before_redirect_input', $quiz_id, $categories ); -
do_action( 'qsm_result_page_condition_after', $quiz_id, $categories ); -
do_action( 'qsm_result_page_content_before', $quiz_id, $categories ); -
do_action( 'qsm_result_page_content_buttons_after', $quiz_id, $categories ); -
apply_filters( 'qsm_result_page_custom_correct_answer_template', $result_page_user_answer_template, $questions, $answer ); -
apply_filters( 'qsm_result_page_custom_user_answer_template', $result_page_user_answer_template, $questions, $answer ); -
apply_filters( 'qsm_result_page_data_template', $question_display, $questions, $qmn_questions, $answer, $qsm_question_cnt, $total_question_cnt ); -
do_action( 'qsm_result_page_more_settings_box_after' ); -
do_action( 'qsm_result_page_more_settings_box_before' ); -
do_action( 'qsm_result_page_settings_box_after' ); -
do_action( 'qsm_result_page_settings_box_before' ); -
do_action( 'qsm_result_page_view_options_before', $quiz_id, $categories ); -
apply_filters( 'qsm_result_question_types', $result_question_types ); -
apply_filters( 'qsm_result_templates_list_before', $template_from_script, $quiz_id ); -
apply_filters( 'qsm_result_variables', $qmn_array_for_variables ); -
apply_filters( 'qsm_results_array', $results_array, $qmn_array_for_variables ); -
apply_filters( 'qsm_results_css_inliner', $content, $response_data, $index ); -
apply_filters( 'qsm_results_delete_clause', $delete ); -
do_action( 'qsm_results_page_condition_category' ); -
do_action( 'qsm_results_page_condition_criteria' ); -
do_action( 'qsm_results_page_condition_operator' ); -
do_action( 'qsm_results_page_condition_value' ); -
do_action( 'qsm_results_page_extra_condition_category' ); -
do_action( 'qsm_results_page_extra_condition_fields' ); -
apply_filters( 'qsm_results_quiz_name_class', '', $quiz_infos[ $x ]->result_id ); -
apply_filters( 'qsm_retake_quiz_text', $qmn_quiz_options->retake_quiz_button_text ); -
apply_filters( 'qsm_save_question_data', $values ); -
do_action( 'qsm_save_result_pages' ); -
do_action( 'qsm_save_style_section' ); -
do_action( 'qsm_saved_question', $question_id_loop, $values ); -
do_action( 'qsm_saved_text_message', $quiz_id, $text_id, $message ); -
do_action( 'qsm_send_result_email_before', $response_data, $email['to'], $email_subject, $email_content, $email['replyTo'], $index ); -
apply_filters( 'qsm_send_results_email_addresses', $to, $response_data ); -
apply_filters( 'qsm_show_progress_bar', true, $quiz_id, $args ); -
apply_filters( 'qsm_show_user_answer_after', $show_user_answer, $single_answer, $user_answer_array, $single_answer_key, $answers_from_response, $grading_system, $question_settings, $form_type, $total_answers ); -
apply_filters( 'qsm_show_user_answer_before', $show_user_answer, $single_answer, $user_answer_array, $single_answer_key, $answers_from_response, $grading_system, $question_settings, $form_type ); -
apply_filters( 'qsm_single_answer_arr', $single_answer_arr[1] ); -
apply_filters( 'qsm_start_button_attributes', '', $quiz_id, $args ); -
apply_filters( 'qsm_start_button_class', array( 'qsm-start-btn', 'qmn_btn', 'mlw_next', 'qsm-btn', 'mlw_custom_start', 'qsm-primary', 'qsm-start-btn-'.$quiz_id, ), $quiz_id, $args ); -
apply_filters( 'qsm_start_button_text', $start_text, $quiz_id, $args ); -
do_action( 'qsm_start_sending_email', $response_data, $to, $subject ); -
apply_filters( 'qsm_submit_button_attributes', '', $quiz_id, $args ); -
apply_filters( 'qsm_submit_button_class', array( 'qmn_btn', 'qsm-btn', 'qsm-submit-btn', 'qsm-primary', 'qsm-submit-btn-'.esc_attr($quiz_id), ), $quiz_id, $args ); -
apply_filters( 'qsm_submit_button_text', $submit_text, $quiz_id, $args ); -
do_action( 'qsm_submit_results_before', $qmn_quiz_options, $qmn_array_for_variables ); -
apply_filters( 'qsm_submit_results_return_array', $return_array, $qmn_array_for_variables ); -
apply_filters( 'qsm_template_variable_results_page', $page, $response_data ); -
apply_filters( 'qsm_text_fieldarray_list', $field_array ); -
apply_filters( 'qsm_text_html_review', $return_array, $answers ); -
apply_filters( 'qsm_text_variable_list', $variable_list ); -
apply_filters( 'qsm_text_variable_list_default_template', $variable_list ); -
apply_filters( 'qsm_text_variable_list_email', $variable_list ); -
apply_filters( 'qsm_text_variable_list_result', $variable_list ); -
do_action( "qsm_theme_option_{strtolower($theme['theme_name'])}", '', '', $get_theme_default_settings, $get_theme_default_settings ); -
do_action( 'qsm_theme_option_before', $quiz_id, $saved_quiz_theme, $get_theme_settings, $get_theme_default_settings ); -
do_action( 'qsm_theme_option_end', $quiz_id, $saved_quiz_theme, $get_theme_settings, $get_theme_default_settings ); -
apply_filters( 'qsm_theme_settings', $theme_settings, $quiz_id ); -
apply_filters( 'qsm_themes_action_button', $button, $theme, $active_themes ); -
apply_filters( 'qsm_timer_up_cancel_button_text_after', __( 'Cancel', 'quiz-master-next' ) ); -
apply_filters( 'qsm_timer_up_submit_button_text_after', __( 'Submit Quiz', 'quiz-master-next' ) ); -
apply_filters( 'qsm_total_user_tries_check_before', $mlw_qmn_user_try_count, $qmn_quiz_options, $qmn_array_for_variables ); -
apply_filters( 'qsm_trim_question_description', true ); -
do_action( 'qsm_ultimate_display_actiivity_report_section' ); -
apply_filters( 'qsm_ultimate_get_subtabs_options', array() ); -
apply_filters( 'qsm_user_role_permission_page', true ); -
apply_filters( 'qsm_user_role_permission_page_view_results', true ); -
apply_filters( 'qsm_validate_contact_field', $errors, $contact_form, $request ); -
apply_filters( 'qsm_warning_messages', $alert_list ); -
do_action( 'qsm_welcome_panel_links' ); -
do_action( 'qsm-question-categories-setting' ); -
apply_filters( 'quiz_query_delete_clause', $delete ); -
apply_filters( 'register_question_type_new_type', $new_type ); -
do_action( 'wp_post_insert_qmn_log', $log_id ); -
do_action( 'wp_pre_insert_qmn_log' ); -
apply_filters( 'wpml_current_language', null ); -
apply_filters( 'wpml_object_id', $base_post_id, 'qsm_quiz', true, $current_lang );
Generated from Quiz and Survey Master (QSM)'s GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: