```get_edit_post_link()``` could be used: ```$edit_url = get_edit_post_link( $product_id );```