WordPress at Your Fingertips
function is not described

WC_Order::set_shipping_phone() public WC 5.6.0

Set shipping phone.

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

No Hooks.

Return

null. Nothing.

Usage

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

Changelog

Since 5.6.0 Introduced.

Code of WC_Order::set_shipping_phone() WC 5.8.0

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