Usage_Reports::process_recipe_data( mixed $recipe_data )

process_recipe_data


Parameters Parameters

$recipe_data

(Required)


Top ↑

Return Return

(void)


Source Source

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

	public function process_recipe_data( $recipe_data ) {

		$this->report['recipes']['live_recipes_count'] ++;

		if ( $recipe_data['recipe_type'] === 'user' ) {
			$this->report['recipes']['user_recipes_count'] ++;
		} elseif ( $recipe_data['recipe_type'] === 'anonymous' ) {
			$this->report['recipes']['everyone_recipes_count'] ++;
		}

	}