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' );
Related Posts:
- Add additional Network constants to wp-config.php dynamically
- Multiple Domains and Subdomains Using Multisite Installation
- Subdomain and subdirectories together in one installation
- muliple wordpress multisite installs on the same sever
- Should I go for Multisite or separate WP Installation?
- How To Add Custom Form Fields To The User Profile Page?
- Specific upload folder for PDFs in custom Post type in WP multisite
- How to migrate subsite from dev multisite to production multisite
- How to delete post revisions?
- Anyone figured out how to use WordPress MultiSite with Domain Mapping & SSL?
- Can upload doc and pdf but not ppt – not permitted for security reasons
- How do I transition multiple installations to a single Multisite installation?
- What is the best way to load the WP environment in a subdomain of my multisite WordPress install?
- Best way to develop multisite and deploy on another server?
- How To Provide Sub-Blogs Their Own Domain Names?
- Removing My Sites menu from Admin
- Prevent Deletion of Blogs
- NGINX Multisite Rewrite rules
- How to Set up a Multisite WordPress?
- Multisite, turn off “create new site”
- wp-admin slow in multisite
- restore_current_blog() vs. multiple switch_to_blog() followed by removing $GLOBALS[‘_wp_switched_stack’]
- Multisite configuration fails with css/js files
- What are the differences in capabilities between the super-administrator and administrator?
- Network setup tab is not shown under Tools
- How to move theme directory but not plugins/uploads out of WordPress root directory?
- How To Modify New Sub Blog Immediately When Super Administrator Creates It?
- How do I add JavaScript that will execute on all my sites in Multisite?
- Multiple Multisite networks on the same domain?
- Issue converting single site to multi-site – blogs.dir folder not created
- WordPress Installation for multi-domains with nginx and php-fpm
- Limit multisite/network site names to a property of the user
- How do I maintain static directories on multisite subdomains?
- Why are images not displaying?
- Replacing the default content created while the site creation
- WP Multisite Static Frontpage
- Preview posts returns 404
- Change multi-site installation from sub-domains to sub-directories
- Multisite on Rackspace Cloud (ubuntu lucid)
- How to stop unlink images when remove a site or user
- What should I do? A multisite, a single website or many websites? [closed]
- Multiple homes for multiple languages [closed]
- WordPress multisite installation broke menu links
- Multi-site vs seperate installs for just 3 blogs?
- Installing WP twice in same Directory?
- Hosting a seperate wordpress project on localhost
- Multisite development environment
- How to host blog on separate domain from main site
- Multisite install – Create each domain with its own directory
- Can you manage multiple domain names from a single WordPress multisite network?
- Pushing stored procedure to a multisite database in WordPress
- How does WordPress determine which multisite the user is on from the URL?
- Multisite multidomain
- How to recover deleted site in WordPress Multisite?
- WordPress Multisite domain mapping with different IPs
- How can I create a second multisite network in a subdirectory?
- Multisite Installation is all the same site
- 2 website 1 database… Local to online
- WordPress stuck in deleting user
- How can I add custom meta on signup page and pass along to be used after blog activation?
- WordPress Multisite – Create Default Post and New Category On New Site Install
- how to migrate wpmu from one host to the other?
- Migrating static site to multisite with multiple domains and subdomains
- Multisite installation on an existing single installation
- Redirect to another page using contact form 7? [closed]
- WordPress multi-site, developing locally and syncing live changes
- How To Run Multiple Multi-Site Networks On Same Box [closed]
- Replicate network plugins without having to configure it for each subsite?
- Different Domains in Multisite Setup
- What is the best method of installing WP on multiple add-on domains?
- Is it possible to install WordPress MU on a subdomain?
- How to publish some default pages in Multisite creation?
- How long is “as long as possible” in wp_cache_set()?
- more tables created when create a new site
- Pros and Cons of Post Types vs. Multiple Blogs
- Multisite subdomain-site redirects to primary site
- How to map domains to specific pages in WordPress and display them in the address bar?
- In Multisite: Site / Blog IDstill exists after deleting site
- Use a single WP installation instead of three
- Multi-site Installation in WordPress | Security & Future Migrations
- Delete all blogs on multisite
- Installed in root, want second in subdirectory
- Should I use individual WordPress installs or WordPress-Mutisite install?
- Is there a built in method to protect pages?
- wordpress multisite not installing
- Is there a way to add a function that will get run after a blog is created?
- cannot access subsites in wordpress multisite
- Default sub-pages on WordPress Multisite
- Pointing multiple subdomains at the same WordPress Installation
- Set static page as default front page on newly created sites in multisite
- Create a Network of Different websites with wordpress
- WordPress multidomains and subfolders
- Using common slider in all sites
- WordPress Multisite platform for different city for single db
- Setting up wordpress on a hosting server for the first time
- Is it possible to install a different wordpress installation in a subdirectory? [duplicate]
- Integrating WordPress for blog and other content pages in a web app
- Could not find site error
- WordPress Multisite
- How do I use different domain for subdomains in WP Multisite?