Set multisite settings when new site created

install.php is only run during installation, it wont be run during new site creation.

You’d need to put that code in a mu-plugin to have any chance of running.

(I guess it could also exist in a network-activated plugin, but I’m not 100% sure of that)

Add the following before your code, and put your file in wp-content/mu-plugins:

<?php
/*
Plugin Name: Yourmultisite options
Description: Foobar
Version: 1.0.0
Author: You
Author URI: http://www.examplecom
*/

Leave a Comment