# learnpress/4.4.5/inc/TemplateHooks/Profile/ProfileInstructorStatisticsTemplate.php

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.4.5. 38 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.4.5/code/inc/TemplateHooks/Profile/ProfileInstructorStatisticsTemplate.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.4.5/raw/inc/TemplateHooks/Profile/ProfileInstructorStatisticsTemplate.php
- Modified: 2026-08-22T04:23:06+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.5/code/inc/TemplateHooks/Profile/ProfileInstructorStatisticsTemplate.php#L10-L20`.

```php
<?php
/**
 * Template hooks Archive Package.
 *
 * @since 1.0.0
 * @version 1.0.0
 */
namespace LearnPress\TemplateHooks\Profile;

use LearnPress\Helpers\Template;

class ProfileInstructorStatisticsTemplate {
	public static function instance() {
		static $instance = null;

		if ( is_null( $instance ) ) {
			$instance = new self();
		}

		return $instance;
	}

	protected function __construct() {
		add_action( 'learn-press/profile/layout/instructor-statistics', [ $this, 'sections' ], 2 );
	}

	public function sections( $data ) {
		$template_path = apply_filters(
			'learn-press/profile/layout/instructor-statistics/item-count',
			LP_PLUGIN_PATH . 'templates/profile/tabs/statistics/item-count.php'
		);
		Template::instance()->get_template(
			$template_path,
			compact( 'data' )
		);
	}
}

```
