WordPress.org

Support

Support » Plugins and Hacks » [Plugin: WP Multi Network] Default Clone Network Options?

[Plugin: WP Multi Network] Default Clone Network Options?

  • I am doing some more playing around with the WP Multi Network plug-in, and I’ve found the sweet spot of options that I need to clone from our original network to any new networks. I’m curious if there is an easy way (without hacking the core of the plug-in) to set those to be turned on by default when I create a new network, or if I have to individually check each of those options when I create a network. Thanks in advance for any advice.

Viewing 1 replies (of 1 total)
  • Not necessarily ideal, but I think I figured it out.

    The key is to hook into the admin_menu action, and add to the $options_to_copy array. An example looks like:

    <?php
    add_action( 'admin_menu', 'adjust_wpmn_options_to_copy' );
    
    function adjust_wpmn_options_to_copy() {
    	global $options_to_copy;
    
    	if( is_array( $options_to_copy ) ) {
    		$options_to_copy['active_sitewide_plugins'] = __( 'Plugins that are network activated' );
    	}
    }
    ?>

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP Multi Network] Default Clone Network Options?’ is closed to new replies.