job_id ); $assessment_post = get_post( $invitation_data->assessment_id ); if ( ! $job_post || ! $assessment_post ) { wp_die( esc_html__( 'Could not load associated job or assessment details.', 'quiztech' ) ); } $job_title = get_the_title( $job_post ); $assessment_title = get_the_title( $assessment_post ); // Consider fetching job description/content if needed: $job_content = apply_filters('the_content', $job_post->post_content); // Determine if pre-screening should be displayed $show_pre_screening = ! empty( $pre_screening_questions ) && is_array( $pre_screening_questions ) && $invitation_data->status === 'sent'; ?> > <?php echo esc_html( $assessment_title ?: __( 'Assessment Invitation', 'quiztech' ) ); ?>

' . wp_kses_post( $job_content ) . '
'; } */ ?>

$question ) : ?>

00:00
assessment_id; // Fetch question IDs associated with the assessment $question_ids = get_post_meta( $assessment_id, '_quiztech_linked_question_ids', true ); if ( is_array( $question_ids ) && ! empty( $question_ids ) ) : ?>
$question_id ) : ?> post_type ) { continue; // Skip if post not found or not a question } $question_title = get_the_title( $question_post ); $question_content = apply_filters('the_content', $question_post->post_content); // Get question content $question_type = get_post_meta( $question_id, 'question_type', true ); $is_first_question = ( $index === 0 ); // Check if it's the first question ?>

$choice_text ) : $choice_value = esc_attr( $choice_text ); // Use text as value for simplicity $choice_id = 'choice_' . esc_attr( $question_id ) . '_' . esc_attr( $choice_index ); ?>


' . esc_html__( 'Could not load questions for this assessment.', 'quiztech' ) . '

'; // Debugging info: // echo '
Question IDs Data: ' . esc_html( print_r( $question_ids, true ) ) . '
'; endif; ?>