I am trying to create a logged in-section for a wordpress site. I am trying to do this in the form of a plugin to be able to reuse it easily for another site.
The idea is to create a new user role ("reseller") that can log-in and have access to a custom dashboard where they can manage list orders, change some settings and similar things. They will have no access to the default wordpress admin dashboard.
So far I have created a plugin that, when activated, adds the user role and limits access to the wp-admin for those users. But I cant quite decide how to create the dashboard pages that they should have access to.
What is the best way to do that? Preferably I would like to do it from within the plugin.