# learnpress/4.4.6/inc/Widgets/LPRegisterWidget.php

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.4.6. 41 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.4.6/code/inc/Widgets/LPRegisterWidget.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.4.6/raw/inc/Widgets/LPRegisterWidget.php
- Modified: 2026-08-31T10:33: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.4.6/code/inc/Widgets/LPRegisterWidget.php#L10-L20`.

```php
<?php

namespace LearnPress\Widgets;

use LearnPress\Helpers\Singleton;

/**
 * Class AbstractWidget
 *
 * @package LearnPress\Widgets
 * @since 4.2.3.2
 * @version 1.0.0
 */
class LPRegisterWidget {
	use Singleton;

	protected function init() {
		add_action( 'widgets_init', array( $this, 'register_widgets' ) );
	}

	/**
	 * Register widgets of LearnPress.
	 *
	 * @return void
	 */
	public function register_widgets() {
		$widgets = apply_filters(
			'learn-press/widgets/register',
			[
				//FilterCourseWidget::class,
			]
		);

		foreach ( $widgets as $widget ) {
			register_widget( $widget );
		}

	}
}


```
