Automattic\WooCommerce\EmailEditor\Engine

Personalizer::set_context │ public │ WC 1.0

Set the context for personalization.

The context provides data required for resolving personalization tags during content processing. This method allows the context to be set or updated.

Example usage: $personalizer->set_context(array(

'recipient_email' => '[email protected]',

));

Method of the class: Personalizer{}

No Hooks.

Returns

void. Nothing (null).

Usage

$Personalizer = new Personalizer();
$Personalizer->set_context( $context );
$context(array<string, mixed>) (required)
Associative array containing personalization data.

Personalizer::set_context() code WC 11.1.2

public function set_context( array $context ) {
	$this->context = $context;
}