Fixed incorrect meta field name for assessment question IDs
This commit is contained in:
parent
f71f305005
commit
471453eab8
3 changed files with 3 additions and 3 deletions
|
|
@ -139,7 +139,7 @@ $show_pre_screening = ! empty( $pre_screening_questions ) && is_array( $pre_scre
|
|||
<?php
|
||||
$assessment_id = $invitation_data->assessment_id;
|
||||
// Fetch question IDs associated with the assessment
|
||||
$question_ids = get_post_meta( $assessment_id, '_quiztech_question_ids', true );
|
||||
$question_ids = get_post_meta( $assessment_id, '_quiztech_linked_question_ids', true );
|
||||
|
||||
if ( is_array( $question_ids ) && ! empty( $question_ids ) ) :
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ class AdminListTables {
|
|||
public function render_assessment_custom_columns( $column_name, $post_id ) {
|
||||
switch ( $column_name ) {
|
||||
case 'num_questions':
|
||||
$question_ids = get_post_meta( $post_id, '_quiztech_question_ids', true );
|
||||
$question_ids = get_post_meta( $post_id, '_quiztech_linked_question_ids', true );
|
||||
echo is_array( $question_ids ) ? count( $question_ids ) : '0';
|
||||
break;
|
||||
case 'credit_cost':
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ function quiztech_calculate_assessment_cost( $assessment_id ) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
$question_ids = \get_post_meta( $assessment_id, '_quiztech_question_ids', true );
|
||||
$question_ids = \get_post_meta( $assessment_id, '_quiztech_linked_question_ids', true );
|
||||
$question_ids = \is_array( $question_ids ) ? $question_ids : array();
|
||||
|
||||
$total_cost = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue