Automattic\WooCommerce\EmailEditor\Engine

Personalizer::set_contextpublicWC 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

null. Nothing (null).

Usage

$Personalizer = new Personalizer();
$Personalizer->set_context( $context );
$context(array) (required)
.

Personalizer::set_context() code WC 10.5.0

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