LLMS_Admin_Dashboard_Widget::add_dashboard_widget()

Add the dashboard widget.


Return Return

(void)


Top ↑

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' )
		);
	}

Top ↑

Changelog Changelog

Changelog
Version Description
7.3.0 Add dashboard widget only if the current user can manage_lifterlms.
7.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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