Total Items Shortcode

The Total Items Shortcode displays the total number of specific items in your LMS — such as Courses, Classes, Students, Instructors, Assignments, etc.

Available Parameters:

Parameter

Description

chart-title

Title to display above the chart.

enable-instructor-filter

true or false – Show a dropdown to filter data by instructor (admin only feature).

instructor-earnings

over-period or over-item – Show data over time (daily/monthly/yearly) or by item (Course/Class/Other Commissions).

content-filter

both, chart, or data – Choose to show the chart, the data table, or both.

chart-type

bar, line, or pie – Choose the chart style. Note: pie works only with instructor-earnings="over-item".

include-course-commission

true or false – Include course commissions in the chart.

include-class-commission

true or false – Include class commissions in the chart.

include-other-commission

true or false – Include other types of commission (e.g., packages or extras).

include-total-commission

true or false – Include the total commission value in the chart.

class

Optional. Add a custom CSS class to the chart container for additional styling.

[dtlms_instructor_commission_earnings chart-title="Instrutor Commission" enable-instructor-filter="true" instructor-earnings="over-period" content-filter="both" chart-type="pie" include-course-commission="true" include-class-commission="true" include-other-commission="true" include-total-commission="true" class="custom-class"]