1

My multi-site setup uses sub-directory. I am creating one plugin + one theme to customize each of the sites. Is there any way to have separate plugins and themes folder per site like so or something similar:

root
+----wp-content
|     +----site1
|          +----plugins
|          +----themes
|     +----site2
|          +----plugins
|          +----themes
+----mu-plugins
|     +----shared-plugin1
|     +----shared-plugin2
+----plugins
|     +----optional-plugin1
|     +----optional-plugin2  

The goal is so that each site can only activate/deactivate the plugin/theme intended for it.

Edit

Multisite Plugin Manager can be a way to achieve what I want to do logically, though it does not put the plugins in their individual directories. I am still interested to hear other solutions.

1

There's register_theme_directory() to ... well register additional theme directories.

For plugins, we don't know how to get around it (so far). If you want, then you can jump into the discussion here and add your thought, share your try-outs and maybe we all together will come to an solution :)

  • 1
    Thanks, this points me to the right direction. I will my hands on creating a register_plugin_directory() – ltfishie Mar 1 '12 at 5:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.