/** * Finds order specified by ID. * * @param $id int Order ID. * * @return Order */ public function find($id) { $post = null; if ($id !== null) { $post = $this->wp->getPost($id); } return $this->wp->applyFilters('jigoshop\\service\\order\\find', $this->factory->fetch($post), $id); }