Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825
Usage_Reports::get_schedule()

get_schedule

Contents


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