# learnpress/4.2.0/templates/single-course/tabs/faqs.php

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.2.0. 36 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.2.0/code/templates/single-course/tabs/faqs.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.2.0/raw/templates/single-course/tabs/faqs.php
- Modified: 2022-11-14T06:50:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/learnpress/4.2.0/code/templates/single-course/tabs/faqs.php#L10-L20`.

```php
<?php
/**
 * Template for displaying FAQs tab of single course.
 *
 * This template can be overridden by copying it to yourtheme/learnpress/single-course/tabs/faqs.php.
 *
 * @author   ThimPress
 * @package  Learnpress/Templates
 * @version  3.0.0
 */

defined( 'ABSPATH' ) || exit();

if ( ! isset( $question ) || ! isset( $answer ) ) {
	return;
}

$unique_key = uniqid();
?>

<input type="checkbox" name="course-faqs-box-ratio" id="course-faqs-box-ratio-<?php echo sanitize_key( $unique_key ); ?>"/>

<?php if ( $question && $answer ) : ?>
	<div class="course-faqs-box">
		<label class="course-faqs-box__title" for="course-faqs-box-ratio-<?php echo sanitize_key( $unique_key ); ?>">
			<?php echo esc_html( $question ); ?>
		</label>

		<div class="course-faqs-box__content">
			<div class="course-faqs-box__content-inner">
				<?php echo wp_kses_post( $answer ); ?>
			</div>
		</div>
	</div>
<?php endif ?>

```
