When a user creates a new blog a new post and a new comment is created at the same time. Is there a way to disable this?
1 Answer
I usually just run a function on wpmu_new_blog – best to put in mu-plugins
function wpse_wpmu_remove_default_content($blog_id, $user_id, $domain, $path, $site_id, $meta) {
if ( !current_user_can('manage_network') )
return;
switch_to_blog($blog_id);
// Remove the default post & page
wp_delete_post(1, true);
wp_delete_post(2, true);
// Remove the first comment
wp_delete_comment( 1, true );
restore_current_blog();
}
add_action( 'wpmu_new_blog', 'wpse_wpmu_remove_default_content' );