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' => 'john@example.com',

));

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

Хуков нет.

Возвращает

void. Ничего (null).

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

$Personalizer = new Personalizer();
$Personalizer->set_context( $context );
$context(array<string, mixed>) (обязательный)
Associative array containing personalization data.

Код Personalizer::set_context() WC 11.2.2

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