Title: Modifying WP Plugin source code in WPMU environment
Last modified: August 19, 2016

---

# Modifying WP Plugin source code in WPMU environment

 *  [kasperbs](https://wordpress.org/support/users/kasperbs/)
 * (@kasperbs)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/modifying-wp-plugin-source-code-in-wpmu-environment/)
 * Hi,
    Can you modify the source code of WordPress plugin and adapt it for several
   individual sites in a Multi Site environment?
 * I use the multi site feature in WordPress to host a few sites. One of the sites
   use a plugin where modify a file in the folder /wp-content/plugins/pluginsname.
   I’m now writing a new theme that requires the same plugin, but with a different
   modification. What is the standard way to get around that, so that both themes
   can use the same plugin independent of each other?

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/modifying-wp-plugin-source-code-in-wpmu-environment/#post-1911976)
 * Yes, modify it to save that as an option.
 *  Thread Starter [kasperbs](https://wordpress.org/support/users/kasperbs/)
 * (@kasperbs)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/modifying-wp-plugin-source-code-in-wpmu-environment/#post-1911978)
 * Thanks.
    Would mind ellaborating on the ‘save that as an option’ thing?
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/modifying-wp-plugin-source-code-in-wpmu-environment/#post-1912064)
 * Well, I couldn’t be really specific as I have no idea what plugin you’re using
   or how it saves info to a file. 😉
 * You could also modify the plugin to save the file to the blog’s uploads folder
   as well.
 *  Thread Starter [kasperbs](https://wordpress.org/support/users/kasperbs/)
 * (@kasperbs)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/modifying-wp-plugin-source-code-in-wpmu-environment/#post-1912084)
 * I was actually thinking generally. For example; I have a twitter plugin that 
   consists of one file called twitter.php. In that file I need to specify the number
   of tweets to show.
 * Let’s say I want to activate this plugin on another site but on that site show
   5 tweets. How do I do that in a multi site environment? I still only have that
   file right?
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/modifying-wp-plugin-source-code-in-wpmu-environment/#post-1912109)
 * Then that’s a bad way to do it in a multisite environment. 🙂
 * Like I said above, code the plugin to save that value in the options table. Presto,
   it will save a different option for each site.
 * And the way to code that in woudl be the same way you’d do it for a single site.
 *  Thread Starter [kasperbs](https://wordpress.org/support/users/kasperbs/)
 * (@kasperbs)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/modifying-wp-plugin-source-code-in-wpmu-environment/#post-1912124)
 * Ahh ok. that’s what I thought. I don’t know how to code plugins unfortunately:-(.
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/modifying-wp-plugin-source-code-in-wpmu-environment/#post-1912145)
 * > I have a twitter plugin that consists of one file called twitter.php. In that
   > file I need to specify the number of tweets to show.
 * > I don’t know how to code plugins unfortunately
 * Then for this, get a different twitter widget.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Modifying WP Plugin source code in WPMU environment’ is closed to new
replies.

## Tags

 * [hacks](https://wordpress.org/support/topic-tag/hacks/)
 * [wpmu](https://wordpress.org/support/topic-tag/wpmu/)

 * 7 replies
 * 2 participants
 * Last reply from: [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/modifying-wp-plugin-source-code-in-wpmu-environment/#post-1912145)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
