I posted this over at the wordpress forums too but it seems like it takes days to weeks (at best) to ever get an answer over there, so:
I am building a custom install package and I’ve modified the “Sample Page” to be the actual default page I want (via the upgrade.php file). I would also like to modify the code for Settings > Reading > “A static page” and then set that id to be 2 which should be the default page I created.
I am unable to find this in the code. Does anyone know where this is stored so I can modify it so that after install this setting is already set?
Just had a thought…perhaps that codes not there because it never sets ANYTHING as the home page. That would make sense. In that case I’d need help constructing the code from someone already knowledgeable in tweaking WP. :\
There’s an
option_namein thewp_optionstable calledpage_on_front. It is likely not the best way, but you can set this directly with an SQL command.Note: You may need to
INSERT INTOas this option might not exist on initial install.