WordPress at Your Fingertips
function is not described

WC_Order::get_user() public WC 1.0

Get the user associated with the order. False for guests.

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

No Hooks.

Return

WP_User|false.

Usage

$WC_Order = new WC_Order();
$WC_Order->get_user();

Code of WC_Order::get_user() WC 5.8.0

public function get_user() {
	return $this->get_user_id() ? get_user_by( 'id', $this->get_user_id() ) : false;
}