Try the following code. Based on these two Q&A’s (not tested):
add_action( 'wpmu_new_blog', 'process_extra_field_on_blog_signup', 10, 6 );
function process_extra_field_on_blog_signup( $blog_id, $user_id, $domain, $path, $site_id, $meta ) {
switch_to_blog($blog_id);
$homepage = get_page_by_title( 'Sample Page' );
if ( $homepage )
{
update_blog_option( $blog_id, 'page_on_front', $homepage->ID );
update_blog_option( $blog_id, 'show_on_front', 'page' );
}
restore_current_blog();
}
Use it as a Must Use plugin.
Related Posts:
- WP Multisite Static Frontpage
- 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 delete post revisions?
- Add additional Network constants to wp-config.php dynamically
- Anyone figured out how to use WordPress MultiSite with Domain Mapping & SSL?
- is_front_page() malfunction?
- 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
- Multiple Domains and Subdomains Using Multisite Installation
- restore_current_blog() vs. multiple switch_to_blog() followed by removing $GLOBALS[‘_wp_switched_stack’]
- 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?
- How to prevent first post and first comment on WP MU?
- Subdomain and subdirectories together in one installation
- 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
- Preview posts returns 404
- 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
- Hosting a seperate wordpress project on localhost
- Multisite development environment
- How to host blog on separate domain from main site
- 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
- WordPress stuck in deleting user
- How can I add custom meta on signup page and pass along to be used after blog activation?
- Migrating static site to multisite with multiple domains and subdomains
- WordPress multi-site, developing locally and syncing live changes
- muliple wordpress multisite installs on the same sever
- 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
- 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
- In Multisite: Site / Blog IDstill exists after deleting site
- Delete all blogs on multisite
- Show all posts on a twentythirteen multisite
- Is there a built in method to protect pages?
- Is there a way to add a function that will get run after a blog is created?
- cannot access subsites in wordpress multisite
- Pointing multiple subdomains at the same WordPress Installation
- Create a Network of Different websites with wordpress
- Using common slider in all sites
- WordPress Multisite platform for different city for single db
- Should I go for Multisite or separate WP Installation?
- Integrating WordPress for blog and other content pages in a web app
- Could not find site error
- WordPress Multisite
- WP Multisite: Adding pages on blog creation by default
- Listing of all site options in dashboard
- Is there a way to define wp_blogs domains in wp-config?
- Adding capabilities to super admins
- Getting a blog language (site “lang_id” field vs the WPLANG setting)
- Add New Sub Site from the WordPress back end then in sub site options table option_value must be with https
- W3 Total Cache – How to disable “Performance” menu under multisite? [closed]
- How to clone and locally run a network for testing
- How to Rename wp-login.php for Multisite?
- Does WordPress MultiSite use separate MySql databases?
- Multisite: How can I have the admin bar (toolbar) use the language of the user instead of the language of the sub-site being viewed?
- How to host unrelated pages on WordPress domain
- Conditional Image Sizes for Use via Theme Customizer Upload Only
- Update WP install to WP network & it broke the DB connection
- How can you customize on a multisite?
- Function to check whether the user is at the top level of the network?
- How to check main site user level from subsite in a multisite network
- wp option get blogname –url=my-sub-site.com returning main site option
- Cannot enable WordPress Network – ‘MULTISITE’ already defined and false
- using htaccess to check for cookie on permalink then conditionall rewrite with query parameter
- What structure should I chose for my website?
- How to show another link post from another blog multisite? [closed]
- How to auto create site after user sign up on multisite(network)
- One login for 3 WordPress installations with combined user table doesn’t work
- Export to WXR for pages containing script and iframe tags
- Multisite installation without using domain root
- Is it possible to put a site other than #1 as a Multisite top-level domain?
- Static front page as parent of with child pages?