I’m making a sidebar widget which is working fine for the most part now. The widget eventuallly uses header(‘location : etc’) to open a pre-made page with a shortcode on it.
The problem is that when i want to install the widget/plugin on another WP theme i need to make that page manually again.
Is there a WP function to make a page? if not does someone have a SQL-query laying around that does this?