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".


Top ↑

Return Return

(string)


Top ↑

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;
	}


Top ↑

Changelog Changelog

Changelog
Version Description
5.9.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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