WC_Order::get_customer_id()
Get customer_id.
Method of the class: WC_Order{}
No Hooks.
Return
Int
.
Usage
$WC_Order = new WC_Order(); $WC_Order->get_customer_id( $context );
- $context(string)
- What the value is for. Valid values are view and edit.
Default: 'view'
WC_Order::get_customer_id() WC Order::get customer id code WC 9.6.1
public function get_customer_id( $context = 'view' ) { return $this->get_prop( 'customer_id', $context ); }