WordPress at Your Fingertips
function is not described

WC_Customer::set_shipping_phone() public WC 5.6.0

Set shipping phone.

{} It's a method of the class: WC_Customer{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Customer = new WC_Customer();
$WC_Customer->set_shipping_phone( $value );
$value(string) (required)
Shipping phone.

Changelog

Since 5.6.0 Introduced.

Code of WC_Customer::set_shipping_phone() WC 5.9.0

public function set_shipping_phone( $value ) {
	$this->set_address_prop( 'phone', 'shipping', $value );
}