/** * Save the product data upon post saving. * * @param $id int Post ID. */ public function savePost($id) { $product = $this->factory->create($id); $this->save($product); }