MP_Reports::do_newleads( array $arr, string $period )
New leads.
Contents
Parameters Parameters
- $arr
-
(array) (Required) array.
- $period
-
(string) (Required) days, months or years.
Source Source
File: mortgage-platform/Inc/Callback/MP_Reports.php
protected function do_newleads( $arr, $period ) {
$leads_id = $this->get_id_for_period( $arr, array( MortgagePlatform::$lead ) );
if ( ! empty( $leads_id ) ) {
$new_leads = $this->get_date( $leads_id );
$count_leads = $this->get_count( $new_leads, $period );
return wp_send_json( array_reverse( $count_leads ) );
}
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |