Usage_Reports::get_schedule()

get_schedule


Return Return

(void)


Source Source

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

	public function get_schedule() {

		$schedule = get_option( self::REPORT_SCHEDULE_OPTION, 0 );

		if ( 0 === $schedule ) {

			$schedule = $this->generate_report_schedule();

			update_option( self::REPORT_SCHEDULE_OPTION, $schedule );

		}

		return absint( $schedule );
	}