Create a Page via plugin
You can create the page via wp_insert_post( $post, $wp_error );. The array $post contains the data for your page, with the full documentation here. Be sure to receive the ID from your inserted page/post. You can Add the page at the activation of your plugin, but please check first if the option for the page … Read more