Do you want to create page on theme activation automatically and give it title and description that you want?
Then you land to the right place.
We have posted the simple function code that will help you to create page on theme activation in just a seconds.
Let’s begin it.
Create Page on Theme Activation
First, You need to copy the below code and paste it into your WordPress theme‘s functions.php file…
…then change the value of
$page_title (New Page Title) and
$page_description (New Page Description) in the code.
Hit save and activate your theme.
Hope the above code has worked for you 100% as it worked for us.
If you have any error or have some question, then do comment below.
Don’t forget to share this Create Page Automatically on Activation theme.