LLMS_Admin_Dashboard_Widget::add_dashboard_widget()
Add the dashboard widget.
Contents
Return Return
(void)
Source Source
File: includes/admin/class.llms.admin.dashboard-widget.php
public function add_dashboard_widget() {
if ( ! current_user_can( 'manage_lifterlms' ) ) {
return;
}
wp_add_dashboard_widget(
'llms_dashboard_widget',
'LifterLMS ' . __( 'Quick Links', 'lifterlms' ),
array( $this, 'output' )
);
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 7.3.0 | Add dashboard widget only if the current user can manage_lifterlms. |
| 7.2.0 | Introduced. |