Usage_Reports::process_async_actions( mixed $data )

process_async_actions


Parameters Parameters

$data

(Required)


Top ↑

Return Return

(void)


Source Source

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

	public function process_async_actions( $data ) {

		if ( isset( $data['meta']['async_mode'] ) ) {
			$this->report['recipes']['async_actions_count'] ++;
			if ( $data['meta']['async_mode'] == 'delay' ) {
				$this->report['recipes']['delayed_actions_count'] ++;
			} elseif ( $data['meta']['async_mode'] == 'schedule' ) {
				$this->report['recipes']['scheduled_actions_count'] ++;
			}
		}

	}