Automattic\WooCommerce\EmailEditor\Engine

Personalizer::get_context │ public │ WC 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.

Метод класса: Personalizer{}

Хуков нет.

Возвращает

array<string, mixed>. The current context.

Использование

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

Код Personalizer::get_context() WC 11.2.2

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