WC_Email::set_object
Set the object for the outgoing email.
Method of the class: WC_Email{}
No Hooks.
Returns
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() WC Email::set object code WC 10.8.1
public function set_object( $object ) { // phpcs:ignore Universal.NamingConventions.NoReservedKeywordParameterNames.objectFound
$this->object = $object;
}