LLMS_Widgets
Contents
Source Source
File: includes/widgets/class.llms.widgets.php
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | class LLMS_Widgets { /** * Constructor * * @since 1.0.0 * * @return void */ public function __construct() { add_action( 'widgets_init' , array ( $this , 'register_widgets' ) ); } /** * Registers all lifterlms_widgets * * @since 1.0.0 * @since 3.12.0 Unknown. * @since 6.0.0 Removed loading of class files that don't instantiate their class in favor of autoloading. * * @return void */ 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' ) ) { $widgets [] = 'LLMS_BBP_Widget_Course_Forums_List' ; } foreach ( $widgets as $widget ) { register_widget( $widget ); } } } |
Expand full source code Collapse full source code View on GitHub
Methods Methods
- __construct — Constructor
- register_widgets — Registers all lifterlms_widgets
Changelog Changelog
Version | Description |
---|---|
3.12.0 | Unknown. |
1.0.0 | Introduced. |