# learnpress/4.4.8/config/elementor/instructor/sections/count_students.php

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.4.8. 60 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.4.8/code/config/elementor/instructor/sections/count_students.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.4.8/raw/config/elementor/instructor/sections/count_students.php
- Modified: 2026-09-18T11:22:50+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.8/code/config/elementor/instructor/sections/count_students.php#L10-L20`.

```php
<?php
/**
 * Elementor Controls for widget Instructor Count Students settings.
 *
 * @since 4.2.3
 * @version 1.0.0
 */

use Elementor\Controls_Manager;
use LearnPress\ExternalPlugin\Elementor\LPElementorControls;

// Fields tab content
$content_fields = array_merge(
	LPElementorControls::add_fields_in_section(
		'wrapper',
		esc_html__( 'Wrapper', 'learnpress' ),
		Controls_Manager::TAB_CONTENT,
		[
			LPElementorControls::add_control_type(
				'instructor_id',
				esc_html__( 'Set Instructor ID', 'learnpress' ),
				'',
				Controls_Manager::TEXT,
				[
					'description' => 'If widget include on page is Single Instructor, will be get instructor id automatic, from query var.',
				]
			)
		]
	),
	[]
);

// Fields tab style
$style_fields = array_merge(
	LPElementorControls::add_fields_in_section(
		'instructor_count_students',
		esc_html__( 'Instructor Count Students', 'learnpress' ),
		Controls_Manager::TAB_STYLE,
		LPElementorControls::add_controls_style_text(
			'count_students',
			'.instructor-total-students'
		)
	),
	[]
);

return apply_filters(
	'learn-press/elementor/instructor/count-students',
	array_merge(
		apply_filters(
			'learn-press/elementor/instructor/count-students/tab-content',
			$content_fields
		),
		apply_filters(
			'learn-press/elementor/instructor/count-students/tab-styles',
			$style_fields
		)
	)
);

```
