Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed new hook for Advance question type #2420

Merged
merged 1 commit into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions php/question-types/qsm-question-title.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ function qsm_question_title_func( $question, $question_type = '', $new_question_
}
?>
<div class='mlw_qmn_question <?php echo esc_attr( $title_extra_classes ); ?>' >
<?php
$question_title = apply_filters( 'qsm_question_title_func_before', $question_title, $question_type, $new_question_title, $question_id );
do_action('qsm_before_question_title',$question, $question_type, $new_question_title, $question_id );
<?php do_action('qsm_before_question_title',$question, $question_type, $new_question_title, $question_id );
$allow_html = wp_kses_allowed_html('post');
$allow_html['input']['autocomplete'] = 1;
$allow_html['input']['name'] = 1;
Expand Down
1 change: 1 addition & 0 deletions php/question-types/qsm-question-type-dropdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ function qmn_drop_down_display( $id, $question, $answers ) {
$require_class = '';
}
$new_question_title = $mlwQuizMasterNext->pluginHelper->get_question_setting( $id, 'question_title' );
$question = apply_filters( 'qsm_question_title_func_before', $question, $answers, $id );
qsm_question_title_func( $question, '', $new_question_title, $id );
$show = true;
$show = apply_filters( 'qsm_check_show_answer_drop_down', $show, $id, $question, $answers );
Expand Down
Loading