Automattic\WooCommerce\EmailEditor\Engine

Personalizer::get_contextpublicWC 1.0

Get the current context.

The context is an associative array containing recipient-specific or campaign-specific data. This data is used to resolve personalization tags and provide input for tag callbacks during email content processing.

Method of the class: Personalizer{}

No Hooks.

Returns

Array. mixed> The current context.

Usage

$Personalizer = new Personalizer();
$Personalizer->get_context(): array;

Personalizer::get_context() code WC 10.8.1

public function get_context(): array {
	return $this->context;
}