Automattic\WooCommerce\Blocks\Domain\Services\CheckoutFieldsSchema
DocumentObject::set_customer
Set the customer object.
Метод класса: DocumentObject{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$DocumentObject = new DocumentObject(); $DocumentObject->set_customer( $customer );
- $customer(WC_Customer) (обязательный)
- The customer object.
Код DocumentObject::set_customer() DocumentObject::set customer WC 10.7.0
public function set_customer( WC_Customer $customer ) {
$this->customer = $customer;
}