WordPress at Your Fingertips
function is not described

WC_Abstract_Order::get_user_id() public WC 1.0

Get user ID. Used by orders, not other order types like refunds.

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

No Hooks.

Return

Int.

Usage

$WC_Abstract_Order = new WC_Abstract_Order();
$WC_Abstract_Order->get_user_id( $context );
$context(string)
View or edit context.
Default: 'view'

Code of WC_Abstract_Order::get_user_id() WC 5.8.0

public function get_user_id( $context = 'view' ) {
	return 0;
}