# learnpress/4.3.8/inc/ExternalPlugin/Elementor/Widgets/Course/CourseMaterialElementor.php

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.3.8. 32 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.3.8/code/inc/ExternalPlugin/Elementor/Widgets/Course/CourseMaterialElementor.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.3.8/raw/inc/ExternalPlugin/Elementor/Widgets/Course/CourseMaterialElementor.php
- Modified: 2026-06-01T03:47:14+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.3.8/code/inc/ExternalPlugin/Elementor/Widgets/Course/CourseMaterialElementor.php#L10-L20`.

```php
<?php
namespace LearnPress\ExternalPlugin\Elementor\Widgets\Course;

use LearnPress\ExternalPlugin\Elementor\LPElementorWidgetBase;
use LearnPress\Helpers\Config;
use Throwable;
class CourseMaterialElementor extends LPElementorWidgetBase {
	public function __construct( $data = [], $args = null ) {
		$this->title    = esc_html__( 'Course/Lesson Material', 'learnpress' );
		$this->name     = 'lp_course_material';
		$this->keywords = [ 'courses', 'lesson', 'material' ];
		$this->icon     = 'eicon-document-file';
		parent::__construct( $data, $args );
	}

	protected function register_controls() {
		$this->controls = Config::instance()->get( 'materials', 'elementor/course' );
		parent::register_controls();
	}
	public function render() {
		try {
			$settings = $this->get_settings_for_display();
			echo '<pre>';
			print_r( $settings );
			echo '</pre>';
		} catch ( Throwable $e ) {
			error_log( __METHOD__ . ': ' . $e->getMessage() );
		}
	}
}


```
