LLMS_Abstract_Post_Data::parse_period()
Retrieves the selected period from $_GET
and validates it.
Description Description
If there is no period set or it’s set to an invalid period, defaults to "today".
Return Return
(string)
Source Source
File: includes/abstracts/llms.abstract.post.data.php
public function parse_period() { $periods = LLMS_Admin_Reporting::get_period_filters(); $period = llms_filter_input( INPUT_GET, 'period' ); if ( ! $period || ! array_key_exists( $period, $periods ) ) { $period = 'today'; } return $period; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.9.0 | Introduced. |