I am focusing on a WordPress 3. multi-site installation. Each new blog uses exactly the same theme with slight modifications (a custom Thesis install, whether it matters). I am attempting to automate the set-up process for every new blog whenever possible.
To that particular finish, Let me instantly add icons to my custom sidebars and widget-enabled footers. It would be better still when the icons might have pre-set parameters/content, which i or the site owner could then enter in the Icons panel and edit.
I have looked everywhere and weren't in a position to discover a method to make this happen. Every suggestions are welcome. Thanks a lot!
I've been able to perform this with schema.php. You'll find this file by finding it in wordpress-admin/includes/schema.php. Within this file you'll find all of the database rows that are installed throughout installation. Therefore this can be a 3-step process.
1)First install one completely correct. Then review your database and discover the rows it produces. These is going to be produced within the _options table. Then look for the schema.php file and scroll to line 320
'page_for_posts' => 0,
'page_on_front' => 0,
2)Stick to the same syntax or perhaps your entire installation will crash. Then just copy paste out of your _options table. The syntax is the following: page_for_posts="option_title" and ="option_value".
When you're finished matching all of your new rows within the schema.php use a new site. The brand new site will instantly install all of your new rows in to the database.
3)(This is applicable if you work with plug ins)Finally, when you're sure you've all of the plug ins you'll need. Return to schema.php and discover row 238
'active_plugins' => array(), change array(), to -> (copy row "active_plug ins" - the choice_value' part)
Therefore all of your plug ins is going to be installed instantly whenever your sites are produced.
In summary...1)finish one site completely 2)Find your brand-new database rows 3)edit schema.php and upgrade.php properly 4)use a new site.
**of course make certain you backup your website and try to TEST TEST TEST
Tell me if this sounds like confusing. I apply it my job also it required us a couple days of uncover to obtain this working perfectly. For those who have more question and you need to request me directly you are able to message me. Take a look at read.
EDIT: Additionally you can automate posts and pages through wordpress-admin/include/upgrade.php - by doing this you are able to install your icons/widget code on install too :)