Create page when plugin is activated
Since you want to check for a certain page, you could use one of the following functions, for instance: get_post: Takes a post ID and returns the database record for that post, which can also be a page. get_page_by_title: Retrieves a post given its title. If more that one post uses the same title, the … Read more