HEX
Server: LiteSpeed
System: Linux l24.yourwebhosting.net 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User: turkishi (1582)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/turkishi/public_html/wp-content/plugins/learnpress/inc/Widgets/LPRegisterWidget.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 );
		}

	}
}