WC_Order::get_shipping_statepublicWC 1.0

Get shipping state.

Method of the class: WC_Order{}

No Hooks.

Returns

String.

Usage

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

WC_Order::get_shipping_state() code WC 10.5.0

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