How do I go about modifying the settings for new blogs? Things like Themes, Permalinks, Blogroll, the default/first post, etc.
Thanks.
How do I go about modifying the settings for new blogs? Things like Themes, Permalinks, Blogroll, the default/first post, etc.
Thanks.
Search the forums for default settings. Been discussed many times previously. You can either modify the wp-admin/schema.php file directly or there's a couple different plugins that'll do the trick.
edit: Example plugins:
http://www.ringofblogs.com/2007/12/21/wpmu-new-blog-settings-plugin/
http://plugins.paidtoblog.com/wpmu-power-tools/
You'll still want to review the discussions as each plugin handles things differently.
How do you use the New-Blog-Defaults code?
mz
Drop the file in the mu-plugins folder.
then go in the admin area and read the Blog Defaults menu under Site Admin.
kind of like the readme.txt file says.
Thanks, andrea_r!
I downloaded a different New-Blog-Defaults code that did not include a readme.txt file. I thought this was the same file and did not download. Thank you.
What is the best way to include two links for every new blog? Do you know of a quick WordPress snippet or example code for this?
Thanks in advance!
mz
The one you downloaded has example php code in it - no administrative interface. You find the section you want to use, and you modify it to do what it you want it to do.
For just the links, you'd create a php file with the following and put it in your wp-plugins folder:
function newblogd_blogroll_links( $blog_id, $user_id )
{
global $current_site;
switch_to_blog($blog_id);
wp_delete_link(1); //delete Wordpress.com blogroll link
wp_delete_link(2); //delete Wordpress.org blogroll link
// repeat this line for each link you want to include
wp_insert_link(array('link_name' => 'my link name', 'link_url' => 'http://somesite.com'));
restore_current_blog();
}
add_action( 'wpmu_new_blog', 'newblogd_blogroll_links', 10, 2 );
That's why I suggested searching. Tons of examples. :)