Usage_Reports::get_last_report()

get_last_report


Return Return

(void)


Source Source

File: src/core/classes/class-usage-reports.php

	public function get_last_report() {

		$last_report = get_option( self::LAST_REPORT_OPTION, 0 );

		if ( 0 === $last_report ) {

			$last_report = $this->current_weekstamp - 1;
			// Pretend that the last report was sent last week
			$this->schedule_next_report( $last_report );

		}

		return $last_report;

	}