LLMS_Admin_Reporting_Tab_Sales::get_widget_data()

Get an array of ajax widgets to load on page load


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 New Sales', 'lifterlms' ),
						'cols'    => '1-4',
						'content' => __( 'loading...', 'lifterlms' ),
						'info'    => __( 'Number of new non-refunded orders placed within this period', 'lifterlms' ),
					),
					'sold'     => array(
						'title'   => __( 'Net Revenue', '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(
					'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' ),
					),
					'transactions' => array(
						'title'   => __( '# of Transactions', 'lifterlms' ),
						'cols'    => '1-4',
						'content' => __( 'loading...', 'lifterlms' ),
						'info'    => __( 'Number of transactions within 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.