Usage_Reports::schedule_next_report( $datestamp )

schedule_next_report


Return Return

(void)


Source Source

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

	public function schedule_next_report( $body ) {

		if ( ! is_wp_error( $body ) && is_array( $body ) && isset( $body['data']['report_frequency'] ) ) {
			$frequency = (int) $body['data']['report_frequency'];
			update_option( 'automator_next_report', time() + $frequency );

			return;
		}

	}