LLMS_Admin_Reporting_Tab_Sales::get_widget_data()

Get an array of ajax widgets to load on page load


Description Description


Return Return

(array)


Top ↑

Source Source

File: includes/admin/reporting/tabs/class.llms.admin.reporting.tab.sales.php

	public function get_widget_data() {
		return apply_filters( 'llms_reporting_tab_sales_widgets', array(
			array(
				'sales' => array(
					'title' => __( '# of Sales', 'lifterlms' ),
					'cols' => '1-4',
					'content' => __( 'loading...', 'lifterlms' ),
					'info' => __( 'Number of new active or completed orders placed within this period', 'lifterlms' ),
				),
				'sold' => array(
					'title' => __( 'Net Sales', 'lifterlms' ),
					'cols' => '1-4',
					'content' => __( 'loading...', 'lifterlms' ),
					'info' => __( 'Total of all successful transactions during this period', 'lifterlms' ),
				),
				'refunds' => array(
					'title' => __( '# of Refunds', 'lifterlms' ),
					'cols' => '1-4',
					'content' => __( 'loading...', 'lifterlms' ),
					'info' => __( 'Number of orders refunded during this period', 'lifterlms' ),
				),
				'refunded' => array(
					'title' => __( 'Amount Refunded', 'lifterlms' ),
					'cols' => '1-4',
					'content' => __( 'loading...', 'lifterlms' ),
					'info' => __( 'Total of all transactions refunded during this period', 'lifterlms' ),
				),
			),
			array(
				// 'revenue' => array(
				// 	'title' => __( 'Grosse Revenue', 'lifterlms' ),
				// 	'cols' => '1-4',
				// 	'content' => __( 'loading...', 'lifterlms' ),
				// 	'info' => __( 'Total of all transactions minus all refunds processed during this period', 'lifterlms' ),
				// ),
				'coupons' => array(
					'title' => __( '# of Coupons Used', 'lifterlms' ),
					'cols' => '1-4',
					'content' => __( 'loading...', 'lifterlms' ),
					'info' => __( 'Number of orders completed using coupons during this period', 'lifterlms' ),
				),
				'discounts' => array(
					'title' => __( 'Amount of Coupons', 'lifterlms' ),
					'cols' => '1-4',
					'content' => __( 'loading...', 'lifterlms' ),
					'info' => __( 'Total amount of coupons used during this period', 'lifterlms' ),
				),
			),
		) );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.2.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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