Support » Plugin: Networks for WordPress » [Plugin: Networks for WordPress] Automatically assign new sites to subnetwork.

  • Hello,

    I have the plugin installed, setup and working properly. However, I am trying to setup my multisite structure (using subdirectories) to accomplish a very simple goal.

    I want all sites installed (by users) to be prefixed by some simple format. mysite.com/sites/ would suffice. The default multisite subdirectory system builds all sites directly under the tld.

    mysite.com/monkeyfun/ & mysite.com/goofymovies/ where the primary site is actually forced under mysite.com/blog/

    So I used the networks for wordpress plugin in an attempt to have a subnetwork for all user created sites. mysite.com/sites/ but regardless of configuration all new sites are still registered under the primary site and have to be moved manually.

    I was wondering if it would be possible to setup some function that moves all registered sites to a particular network. So if I need to create new multisites on the tld I can do so manually from the admin interface, but all sites users create will live under the neat prefix mysite.com/sites/

    Any hints as to where I might start if I wanted to do something like that would be greatly appreciated.

    http://wordpress.org/extend/plugins/networks-for-wordpress/

Viewing 1 replies (of 1 total)
  • Plugin Author David Dean

    (@ddean)

    I haven’t tested this, but you could probably hook the wpmu_new_blog action and create a function to move the new site.

    You can use the move_blog( $blog_id, $new_site_id ) function for the heavy lifting.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Networks for WordPress] Automatically assign new sites to subnetwork.’ is closed to new replies.