public function get_refund($id = 0) { wc_deprecated_function('get_refund', '2.7', 'read'); if (!$id) { return false; } if ($result = get_post($id)) { $this->populate($result); return true; } return false; }