Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

LLMS_Admin_Reporting::get_output_widget_args( array $args = array() )

Retrieves arguments for {@see LifterLMS_Admin_Reporting::output_widget}.


Description Description

Merges the supplied arguments with the default args.


Top ↑

Parameters Parameters

$args

(array) (Optional) Widget settings and data, LifterLMS_Adming_Reporting::output_widget.

Default value: array()


Top ↑

Return Return

(array) Merged arguments.


Top ↑

Source Source

File: includes/admin/reporting/class.llms.admin.reporting.php

	private static function get_output_widget_args( $args = array() ) {

		return wp_parse_args(
			$args,
			array(
				'id'           => '',
				'text'         => '',
				'data'         => '',
				'data_compare' => '',
				'data_type'    => 'numeric', // Enum: numeric, monetary, text, percentage, or date.
				'icon'         => '',
				'impact'       => 'positive', // Enum: positive or negative.
				'cols'         => 'd-1of2',
			)
		);

	}


Top ↑

Changelog Changelog

Changelog
Version Description
6.11.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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