# learnpress/4.2.0/templates/single-course/item-comments.php

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

- Page: https://pluginprobe.com/plugins/learnpress/4.2.0/code/templates/single-course/item-comments.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.2.0/raw/templates/single-course/item-comments.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/item-comments.php#L10-L20`.

```php
<?php
/**
 * Template for displaying comments of a course item.
 *
 * @author  ThimPress
 * @package LearnPress/Templates
 * @version 4.0.0
 */

defined( 'ABSPATH' ) || exit;

if ( comments_open() || get_comments_number() ) {
	?>
	<div id="learn-press-item-comments">
		<div class="learn-press-comments">
			<?php
			add_filter( 'deprecated_file_trigger_error', '__return_false' );
			comments_template();
			remove_filter( 'deprecated_file_trigger_error', '__return_false' );
			?>
		</div>
	</div>
<?php } ?>

```
