Support » Fixing WordPress » Create WP page in php
4 years, 4 months ago
Hello fellow WP users,
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?
You can use this function:
Thank you edpittol!