WordPress at Your Fingertips
function is not described

WC_Customer::get_shipping_phone() public WC 5.6.0

Get shipping phone.

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

No Hooks.

Return

String.

Usage

$WC_Customer = new WC_Customer();
$WC_Customer->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.

Code of WC_Customer::get_shipping_phone() WC 5.9.0

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