WC_Order::get_shipping_phone()publicWC 5.6.0

Get shipping phone.

Method of the class: WC_Order{}

No Hooks.

Return

String.

Usage

$WC_Order = new WC_Order();
$WC_Order->get_shipping_phone( $context );
$context(string)
What the value is for. Valid values are view and edit.
Default: 'view'

Changelog

Since 5.6.0 Introduced.

WC_Order::get_shipping_phone() code WC 8.7.0

public function get_shipping_phone( $context = 'view' ) {
	return $this->get_address_prop( 'phone', 'shipping', $context );
}