WC_Email::set_object()publicWC 1.0

Set the object for the outgoing email.

Method of the class: WC_Email{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Email = new WC_Email();
$WC_Email->set_object( $object );
$object(object) (required)
Object this email is for, e.g. customer, or product.

WC_Email::set_object() code WC 9.5.1

public function set_object( $object ) { // phpcs:ignore Universal.NamingConventions.NoReservedKeywordParameterNames.objectFound
	$this->object = $object;
}