MP_DashboardSettings::set_fields_dashboard()
Fields of Tab “Dashboard”.
Return Return
(array) Dashboard settings fields.
- 'age_report_table'
(array) Enable Age report on Dashboard - 'new_leads_chart'
(array) Enable New Leads Chart on Dashboard
Source Source
File: mortgage-platform/Inc/Base/Settings/MP_DashboardSettings.php
public function set_fields_dashboard() {
$fields_style = array(
array(
'id' => 'age_report_table',
'title' => __( 'Enable Age report on Dashboard', 'mortgage_platform' ),
'callback' => array( $this, 'checkbox' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'dashboard',
'label_for' => 'age_report_table',
'placeholder' => '',
'default' => '',
'description' => '',
),
),
array(
'id' => 'new_leads_chart',
'title' => __( 'Enable New Leads Chart on Dashboard', 'mortgage_platform' ),
'callback' => array( $this, 'checkbox' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'dashboard',
'label_for' => 'new_leads_chart',
'placeholder' => '',
'default' => '',
'description' => '',
),
),
);
return $fields_style;
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |