Multiple Choice Question icon
Utilities

Multiple Choice Question hooks reference

Multiple Choice Question 1.2.1 has 8 actions and 13 filters, read directly from its source code on Nov 19, 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.

functions.phpyour child theme
// Run your own code when Multiple Choice Question fires an action
add_action( 'mcq_action_after_single_question', function() {
	// Your code runs here.
}, 10, 1 );

// Change a value Multiple Choice Question is about to use
add_filter( 'MCQ_FILTER_QUESTION_BUTTON_CORRECT_HTML', function( $sprintf ) {
	// Change $sprintf here.
	return $sprintf;
}, 10, 1 );

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

  • templates/single-question.php line 32
    do_action( 'mcq_action_after_single_question' );
  • templates/single-question.php line 12
    do_action( 'mcq_action_before_single_question' );
  • templates/single-question.php line 29
    do_action( 'mcq_action_sidebar' );
  • templates/single-question.php line 21
    do_action( 'mcq_action_single_question_buttons' );
  • templates/single-question.php line 19
    do_action( 'mcq_action_single_question_meta' );
  • templates/single-question.php line 20
    do_action( 'mcq_action_single_question_optins' );
  • templates/single-question.php line 18
    do_action( 'mcq_action_single_question_title' );
  • templates/single-question/buttons.php line 12
    apply_filters( 'MCQ_FILTER_QUESTION_BUTTON_CORRECT_HTML', sprintf( __('<div class="button btn_view_correct">%s</div>', MCQ_TEXTDOMAIN ), $correct_btn_text ) );
  • templates/single-question/meta.php line 14
    apply_filters( 'MCQ_FILTER_QUESTION_META_CATEGORY_HTML', sprintf( __('<a class="meta button question_category" href="%s">%s %s</a>', MCQ_TEXTDOMAIN ), get_term_link($category[0]->term_id), '<i class="fa fa-folder-open-o"></i>', $category[0]->name ) );
  • templates/single-question/meta.php line 16
    apply_filters( 'MCQ_FILTER_QUESTION_META_DATE_HTML', sprintf( __('<a class="meta button question_date" href="" itemprop="datePublished" content="%s">%s %s</a>', MCQ_TEXTDOMAIN ), get_the_date(), '<i class="fa fa-calendar-check-o"></i>', get_the_date() ) );
  • templates/single-question/title.php line 10
    apply_filters( 'MCQ_FILTER_QUESTION_TITLE_HTML', sprintf( __('<h1 itemprop="QuestionName" class="title" content="%s">%s</h1>', MCQ_TEXTDOMAIN ), get_the_title(), get_the_title() ) );
  • includes/lass-post-meta-qset.php line 94
    apply_filters( 'mcq_filters_meta_options_question_set', $options );
  • includes/class-post-meta-participant.php line 98
    apply_filters( 'mcq_filters_meta_participant', $options );
  • includes/menu/settings.php line 68
    apply_filters( 'mcq_settings_options', $options );
  • includes/class-post-types.php line 187
    apply_filters( 'register_post_type_given_test', array( 'labels' => array( 'name' => $plural, 'singular_name' => $singular, 'menu_name' => __( $singular, MCQ_TEXTDOMAIN ), 'all_items' => sprintf( __( 'All %s', MCQ_TEXTDOMAIN ), $plural ), 'add_new' => __( 'Add New', MCQ_TEXTDOMAIN ), 'add_new_item' => sprintf( __( 'Add %s', MCQ_TEXTDOMAIN ), $singular ), 'edit' => __( 'Edit', MCQ_TEXTDOMAIN ), 'edit_item' => sprintf( __( 'Edit %s', MCQ_TEXTDO... );
  • includes/class-post-types.php line 26
    apply_filters( 'register_post_type_participant', array( 'labels' => array( 'name' => $plural, 'singular_name' => $singular, 'menu_name' => __( $singular, MCQ_TEXTDOMAIN ), 'all_items' => sprintf( __( 'All %s', MCQ_TEXTDOMAIN ), $plural ), 'add_new' => __( 'Add New', MCQ_TEXTDOMAIN ), 'add_new_item' => sprintf( __( 'Add %s', MCQ_TEXTDOMAIN ), $singular ), 'edit' => __( 'Edit', MCQ_TEXTDOMAIN ), 'edit_item' => sprintf( __( 'Edit %s', MCQ_TEXTDO... );
  • includes/class-post-types.php line 68
    apply_filters( 'register_post_type_question', array( 'labels' => array( 'name' => $plural, 'singular_name' => $singular, 'menu_name' => __( $singular, MCQ_TEXTDOMAIN ), 'all_items' => sprintf( __( 'All %s', MCQ_TEXTDOMAIN ), $plural ), 'add_new' => __( 'Add New', MCQ_TEXTDOMAIN ), 'add_new_item' => sprintf( __( 'Add %s', MCQ_TEXTDOMAIN ), $singular ), 'edit' => __( 'Edit', MCQ_TEXTDOMAIN ), 'edit_item' => sprintf( __( 'Edit %s', MCQ_TEXTDO... );
  • includes/class-post-types.php line 145
    apply_filters( 'register_post_type_question_set', array( 'labels' => array( 'name' => $plural, 'singular_name' => $singular, 'menu_name' => __( $singular, MCQ_TEXTDOMAIN ), 'all_items' => sprintf( __( 'All %s', MCQ_TEXTDOMAIN ), $plural ), 'add_new' => __( 'Add New', MCQ_TEXTDOMAIN ), 'add_new_item' => sprintf( __( 'Add %s', MCQ_TEXTDOMAIN ), $singular ), 'edit' => __( 'Edit', MCQ_TEXTDOMAIN ), 'edit_item' => sprintf( __( 'Edit %s', MCQ_TEXTDO... );
  • includes/class-post-types.php line 107
    apply_filters( 'register_taxonomy_product_group_args', array( 'hierarchical' => true, 'show_admin_column' => true, 'update_count_callback' => '_update_post_term_count', 'label' => $plural, 'labels' => array( 'name' => $plural, 'singular_name' => $singular, 'menu_name' => ucwords( $plural ), 'search_items' => sprintf( __( 'Search %s', MCQ_TEXTDOMAIN ), $plural ), 'all_items' => sprintf( __( 'All %s', MCQ_TEXTDOMAIN ), $plural ), 'parent_item' => spr... );
  • includes/class-post-types.php line 106
    apply_filters( 'register_taxonomy_product_group_object_type', array( 'question' ) );

Generated from Multiple Choice Question'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.

Plugin 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 this

Not 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: