WC_Customer::set_billing_email
Set billing_email.
Метод класса: WC_Customer{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WC_Customer = new WC_Customer(); $WC_Customer->set_billing_email( $value );
- $value(строка) (обязательный)
- Billing email.
Код WC_Customer::set_billing_email() WC Customer::set billing email WC 10.4.3
public function set_billing_email( $value ) {
if ( $value && ! is_email( (string) $value ) ) {
$this->error( 'customer_invalid_billing_email', __( 'Invalid billing email address', 'woocommerce' ) );
}
$this->set_address_prop( 'email', 'billing', sanitize_email( $value ) );
}