Adds editEntry function to change data of a post/page/draft