LLMS_Widgets::register_widgets()

Registers all lifterlms_widgets


Description Description


Return Return

(void)


Top ↑

Source Source

File: includes/widgets/class.llms.widgets.php

	public function register_widgets() {

		$widgets = apply_filters( 'lifterlms_widgets', array(
			'LLMS_Widget_Course_Progress',
			'LLMS_Widget_Course_Syllabus',
		) );

		if ( class_exists( 'bbPress' ) && 'yes' === get_option( 'llms_integration_bbpress_enabled', 'no' ) ) {
			require_once LLMS_PLUGIN_DIR . 'includes/widgets/class.llms.bbp.widget.course.forums.list.php';
			$widgets[] = 'LLMS_BBP_Widget_Course_Forums_List';
		}

		foreach ( $widgets as $widget ) {

			register_widget( $widget );

		}

	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.





Permalink: