WC_Email::set_object
Set the object for the outgoing email.
Метод класса: WC_Email{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WC_Email = new WC_Email(); $WC_Email->set_object( $object );
- $object(объект) (обязательный)
- Object this email is for, e.g. customer, or product.
Код WC_Email::set_object() WC Email::set object WC 11.0.1
public function set_object( $object ) { // phpcs:ignore Universal.NamingConventions.NoReservedKeywordParameterNames.objectFound
$this->object = $object;
}