# learnpress/4.4.1/templates/loop/course/students.php

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.4.1. 29 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.4.1/code/templates/loop/course/students.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.4.1/raw/templates/loop/course/students.php
- Modified: 2026-06-26T11:19:40+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.4.1/code/templates/loop/course/students.php#L10-L20`.

```php
<?php
/**
 * Template for displaying course students within the loop.
 *
 * Do not use in LP4.
 * Will remove after LearnPress and Eduma and all guest update 4.0.0
 *
 * @author  ThimPress
 * @package  Learnpress/Templates
 * @version  3.0.0
 */

/**
 * Prevent loading this file directly
 */
defined( 'ABSPATH' ) || exit();

$course = learn_press_get_course();
if ( ! $course ) {
	return;
}
?>

<span class="course-students">

	<?php echo esc_html( $course->get_users_enrolled() ); ?>

</span>

```
