Filter
rpress_get_report_dates_default_range
On this page
Filters the default date range used by the report date selector.
Runs in rpress_get_report_dates() when the request has no range parameter. The value is a range ID from the date selector such as last_30_days, this_month or this_year. The default is last_30_days.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$range | string | Default range ID. Default last_30_days. |
Return value#
string. A range ID known to rpress_get_report_dates().
Example#
function my_default_report_range( $range ) {
return 'this_month';
}
add_filter( 'rpress_get_report_dates_default_range', 'my_default_report_range', 10, 1 );
Source#
Applied in:
includes/admin/reporting/graphing.php(line 720), inrpress_get_report_dates()
See also#
Was this page helpful?
