WC_Order::get_user()
Get the user associated with the order. False for guests.
Description Description
Return Return
(WP_User|false)
Source Source
File: includes/class-wc-order.php
public function get_user() { return $this->get_user_id() ? get_user_by( 'id', $this->get_user_id() ) : false; }